From 8d94b1afdb3e58e6d3eb6b555f79ac0932b5e595 Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Thu, 28 Mar 2024 23:33:04 +0100 Subject: [PATCH] Relax checks on unused imports This is definitely worth a warning but should not make builds fail for users. We deny warnings in CI and sort this out before integrating. See issue #169 for more details. --- .github/workflows/build.yaml | 2 ++ src/lib.rs | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6a0dd531..77c01ebe 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -46,6 +46,8 @@ env: CARGO_TERM_COLOR: always # Enable cross compilation for `pkg_config`. PKG_CONFIG_ALLOW_CROSS: 1 + # Deny warnings. + RUSTFLAGS: -D warnings jobs: build: diff --git a/src/lib.rs b/src/lib.rs index 25b98db4..f01363dc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,8 +19,7 @@ #![deny( missing_docs, missing_debug_implementations, - missing_copy_implementations, - unused + missing_copy_implementations )] // Document feature-gated elements on docs.rs. See // https://doc.rust-lang.org/rustdoc/unstable-features.html?highlight=doc(cfg#doccfg-recording-what-platforms-or-features-are-required-for-code-to-be-present