diff --git a/examples/completion.rs b/examples/completion.rs index bcfda9a..f9e4cce 100644 --- a/examples/completion.rs +++ b/examples/completion.rs @@ -22,12 +22,12 @@ enum Arg { // Completion is derived from the `Number` type, through the `Value` trait /// Give it a number! #[arg("-n N", "--number=N")] - Number(Number), + Number(#[allow(unused)] Number), // Completion is derived from the `PathBuf` type /// Give it a path! #[arg("-p P", "--path=P")] - Path(PathBuf), + Path(#[allow(unused)] PathBuf), } struct Settings; diff --git a/tests/coreutils/dd.rs b/tests/coreutils/dd.rs index b8b5358..32cbe1a 100644 --- a/tests/coreutils/dd.rs +++ b/tests/coreutils/dd.rs @@ -32,7 +32,7 @@ enum Arg { Bs(usize), #[arg("cbs=BYTES")] - Cbs(usize), + Cbs(#[allow(unused)] usize), #[arg("skip=BYTES", "iseek=BYTES")] Skip(u64), @@ -47,13 +47,13 @@ enum Arg { Status(StatusLevel), #[arg("conv=CONVERSIONS")] - Conv(String), + Conv(#[allow(unused)] String), #[arg("iflag=FLAGS")] - Iflag(String), + Iflag(#[allow(unused)] String), #[arg("oflag=FLAGS")] - Oflag(String), + Oflag(#[allow(unused)] String), } #[derive(Debug, PartialEq, Eq)]