From 7e6c6aa3db99d7c689f517a99879d2c1e0adfc55 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Wed, 4 Dec 2024 16:01:12 -0800 Subject: [PATCH] feat: Change clippy config --- .github/workflows/test.yml | 13 +------------ Cargo.toml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bed67fa..1d0cd07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,18 +27,7 @@ jobs: - name: lint with clippy uses: 10XGenomics/clippy-check@main with: - args: | - --all-targets -- - -W clippy::wildcard_imports - -W clippy::redundant_closure_for_method_calls - -W clippy::enum_glob_use - -A clippy::float_cmp - -D clippy::unused_io_amount - -W future_incompatible - -W nonstandard_style - -W rust_2018_compatibility - -W rust_2021_compatibility - -W unused + args: --all-targets - uses: EmbarkStudios/cargo-deny-action@v1 - name: Build run: cargo build --release diff --git a/Cargo.toml b/Cargo.toml index cb9fad6..16aa53b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,22 @@ harness = false name = "array_bench" harness = false +[lints.clippy] +enum_glob_use = "deny" +needless_lifetimes = "deny" +perf = "deny" +redundant_closure_for_method_calls = "deny" +style = "deny" +suspicious = "deny" +unnecessary_unwrap = "deny" +unused_io_amount = "deny" +wildcard_imports = "deny" + +[lints.rust] +future_incompatible = "deny" +nonstandard_style = "deny" +unused = "deny" + [dependencies] anyhow = { version = "1", features = ["backtrace"] } bio = "2"