Skip to content

Commit c711166

Browse files
committed
Mark unused spaces to satisfy clippy
This causes CI failures, so let's fix this.
1 parent dfe9957 commit c711166

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/completion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ enum Arg {
2121
// Completion is derived from the `Number` type, through the `Value` trait
2222
/// Give it a number!
2323
#[arg("-n N", "--number=N")]
24-
Number(Number),
24+
Number(#[allow(unused)] Number),
2525

2626
// Completion is derived from the `PathBuf` type
2727
/// Give it a path!
2828
#[arg("-p P", "--path=P")]
29-
Path(PathBuf),
29+
Path(#[allow(unused)] PathBuf),
3030
}
3131

3232
struct Settings;

tests/coreutils/dd.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ enum Arg {
3232
Bs(usize),
3333

3434
#[arg("cbs=BYTES")]
35-
Cbs(usize),
35+
Cbs(#[allow(unused)] usize),
3636

3737
#[arg("skip=BYTES", "iseek=BYTES")]
3838
Skip(u64),
@@ -47,13 +47,13 @@ enum Arg {
4747
Status(StatusLevel),
4848

4949
#[arg("conv=CONVERSIONS")]
50-
Conv(String),
50+
Conv(#[allow(unused)] String),
5151

5252
#[arg("iflag=FLAGS")]
53-
Iflag(String),
53+
Iflag(#[allow(unused)] String),
5454

5555
#[arg("oflag=FLAGS")]
56-
Oflag(String),
56+
Oflag(#[allow(unused)] String),
5757
}
5858

5959
#[derive(Debug, PartialEq, Eq)]

0 commit comments

Comments
 (0)