From 85c3820f87faa848afa473e3cac4b7eccae4a32b Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Fri, 29 Dec 2023 11:15:31 -0500 Subject: [PATCH] lib: allow unused import for ffi-testing feat Running `cargo clippy-ci` using Rust 1.75 fails: ``` error: unused import: `tests::ffi::*` --> src/lib.rs:28:9 | 28 | pub use tests::ffi::*; | ^^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]` ``` This commit adds a `allow(unused_imports)` gated on the same `ffi-testing` feature that the `pub use` statement is conditional upon. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 1f44e2e4..d6c216e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,6 +25,7 @@ mod tests; // Re-export any exported functions that are required for // tests to run in a platform-native environment. #[cfg(feature = "ffi-testing")] +#[cfg_attr(feature = "ffi-testing", allow(unused_imports))] pub use tests::ffi::*; /// Creates and returns a `rustls` configuration that verifies TLS