Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocicrypt: keyprovider: fix warnings on dead code
For quite some time, we have seen: warning: struct `TestRunner` is never constructed Warning: --> ocicrypt-rs/src/keywrap/keyprovider/mod.rs:558:16 | 558 | pub struct TestRunner {} | ^^^^^^^^^^ | = note: `TestRunner` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default warning: struct `TestServer` is never constructed Warning: --> ocicrypt-rs/src/keywrap/keyprovider/mod.rs:570:12 | 570 | struct TestServer {} | ^^^^^^^^^^ | = note: `TestServer` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis The fix is to add them behind the right feature flags. Signed-off-by: Mikko Ylinen <[email protected]>
- Loading branch information