Skip to content

Commit

Permalink
Mark unused spaces to satisfy clippy
Browse files Browse the repository at this point in the history
This causes CI failures, so let's fix this.
  • Loading branch information
BenWiederhake committed Mar 29, 2024
1 parent 4b5918e commit b2e8f73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,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;
Expand Down
8 changes: 4 additions & 4 deletions tests/coreutils/dd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enum Arg {
Bs(usize),

#[arg("cbs=BYTES")]
Cbs(usize),
Cbs(#[allow(unused)] usize),

#[arg("skip=BYTES", "iseek=BYTES")]
Skip(u64),
Expand All @@ -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)]
Expand Down

0 comments on commit b2e8f73

Please sign in to comment.