mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
clippy: simplify code according to nightly 'needless_borrows_for_generic_args' lint
https://rust-lang.github.io/rust-clippy/master/index.html#/needless_borrows_for_generic_args
This commit is contained in:
parent
76af976e48
commit
42b3baf32f
9 changed files with 27 additions and 27 deletions
|
@ -75,7 +75,7 @@ fn test_invalid_value_returns_1() {
|
|||
"--time",
|
||||
] {
|
||||
new_ucmd!()
|
||||
.arg(&format!("{flag}=definitely_invalid_value"))
|
||||
.arg(format!("{flag}=definitely_invalid_value"))
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.code_is(1);
|
||||
|
@ -87,7 +87,7 @@ fn test_invalid_value_returns_2() {
|
|||
// Invalid values to flags *sometimes* result in error code 2:
|
||||
for flag in ["--block-size", "--width", "--tab-size"] {
|
||||
new_ucmd!()
|
||||
.arg(&format!("{flag}=definitely_invalid_value"))
|
||||
.arg(format!("{flag}=definitely_invalid_value"))
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.code_is(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue