Skip to content

Commit e2cdf41

Browse files
BenWiederhakesylvestre
authored andcommitted
Mark unused spaces to satisfy clippy
This causes CI failures, so let's fix this.
1 parent 29d94e1 commit e2cdf41

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/completion.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ enum Arg {
2222
// Completion is derived from the `Number` type, through the `Value` trait
2323
/// Give it a number!
2424
#[arg("-n N", "--number=N")]
25-
Number(Number),
25+
Number(#[allow(unused)] Number),
2626

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

3333
struct Settings;

tests/coreutils/dd.rs

+4-4
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)