diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d8587fe6e..1d578c4ed 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -5,6 +5,9 @@ jobs: name: Rust Checks env: CARGO_TERM_COLOR: always + RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings + runs-on: ubuntu-latest steps: diff --git a/pre-commit b/pre-commit index eb41e350c..f98ffb181 100755 --- a/pre-commit +++ b/pre-commit @@ -46,6 +46,6 @@ error() { cargo build --benches --all-features || error "Benchmarks compilation errors" -cargo clippy --tests || error "Clippy errors" +cargo clippy --tests -- -D warnings || error "Clippy errors" cargo test || error "Test failures" diff --git a/src/lib.rs b/src/lib.rs index 51e935fc1..69cb3677d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![deny(warnings, clippy::pedantic, clippy::clone_on_ref_ptr)] +#![deny(clippy::pedantic, clippy::clone_on_ref_ptr)] // The following warnings are too noisy for us and having them enabled leads to polluting the // code with allow annotations. Disabling them once per project here #![allow(clippy::similar_names)]