diff --git a/rust/pvsecret/src/cli.rs b/rust/pvsecret/src/cli.rs index 1fb4937b..8b4df131 100644 --- a/rust/pvsecret/src/cli.rs +++ b/rust/pvsecret/src/cli.rs @@ -310,6 +310,9 @@ pub struct AddSecretOpt { } #[derive(Debug)] +// Allow dead_code to suppress false positive: struct fields are accessed via From trait +// implementation and used in cmd/add.rs, but clippy doesn't detect this indirect usage pattern +#[allow(dead_code)] pub struct AddSecretOptComb<'a> { pub input: &'a str, pub force: bool, @@ -352,6 +355,9 @@ pub struct ListSecretOpt { } #[derive(Debug)] +// Allow dead_code to suppress false positive: struct fields are accessed via From trait +// implementation and used in cmd/list.rs, but clippy doesn't detect this indirect usage pattern +#[allow(dead_code)] pub struct ListSecretOptComb<'a> { pub output: &'a str, pub format: ListSecretOutputType, @@ -487,6 +493,9 @@ pub enum RetrOutFmt { } #[derive(Debug)] +// Allow dead_code to suppress false positive: struct fields are accessed via From trait +// implementation and used in cmd/retr.rs, but clippy doesn't detect this indirect usage pattern +#[allow(dead_code)] pub struct RetrSecretOptionsComb<'a> { pub input: &'a str, pub output: &'a str, diff --git a/rust/pvverify/src/cli.rs b/rust/pvverify/src/cli.rs index 27244d3f..b9c52e4c 100644 --- a/rust/pvverify/src/cli.rs +++ b/rust/pvverify/src/cli.rs @@ -13,6 +13,9 @@ static VERSION: OnceLock = OnceLock::new(); /// Tool to verify host-keys /// /// Tool to verify host-keys. Use this tool to verify the chain of trust for IBM Secure +// Allow manual_non_exhaustive to suppress Clippy false positive as the version +// field is used by Clap to generate the --version flag. +#[allow(clippy::manual_non_exhaustive)] pub struct CliOptions { #[command(flatten)] pub certificate_args: CertificateOptions,