Skip to content

Commit 85c3820

Browse files
cpucomplexspaces
authored andcommitted
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.
1 parent a27bfda commit 85c3820

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ mod tests;
2525
// Re-export any exported functions that are required for
2626
// tests to run in a platform-native environment.
2727
#[cfg(feature = "ffi-testing")]
28+
#[cfg_attr(feature = "ffi-testing", allow(unused_imports))]
2829
pub use tests::ffi::*;
2930

3031
/// Creates and returns a `rustls` configuration that verifies TLS

0 commit comments

Comments
 (0)