Skip to content

Commit

Permalink
lib: allow unused import for ffi-testing feat
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cpu authored and complexspaces committed Dec 29, 2023
1 parent a27bfda commit 85c3820
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85c3820

Please sign in to comment.