1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37: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:
Ben Wiederhake 2024-07-18 15:38:10 +02:00
parent 76af976e48
commit 42b3baf32f
9 changed files with 27 additions and 27 deletions

View file

@ -143,7 +143,7 @@ fn test_range_repeat_no_overflow_1_max() {
let upper_bound = usize::MAX;
let result = new_ucmd!()
.arg("-rn1")
.arg(&format!("-i1-{upper_bound}"))
.arg(format!("-i1-{upper_bound}"))
.succeeds();
result.no_stderr();
@ -161,7 +161,7 @@ fn test_range_repeat_no_overflow_0_max_minus_1() {
let upper_bound = usize::MAX - 1;
let result = new_ucmd!()
.arg("-rn1")
.arg(&format!("-i0-{upper_bound}"))
.arg(format!("-i0-{upper_bound}"))
.succeeds();
result.no_stderr();
@ -179,7 +179,7 @@ fn test_range_permute_no_overflow_1_max() {
let upper_bound = usize::MAX;
let result = new_ucmd!()
.arg("-n1")
.arg(&format!("-i1-{upper_bound}"))
.arg(format!("-i1-{upper_bound}"))
.succeeds();
result.no_stderr();
@ -197,7 +197,7 @@ fn test_range_permute_no_overflow_0_max_minus_1() {
let upper_bound = usize::MAX - 1;
let result = new_ucmd!()
.arg("-n1")
.arg(&format!("-i0-{upper_bound}"))
.arg(format!("-i0-{upper_bound}"))
.succeeds();
result.no_stderr();
@ -218,7 +218,7 @@ fn test_range_permute_no_overflow_0_max() {
let upper_bound = usize::MAX;
let result = new_ucmd!()
.arg("-n1")
.arg(&format!("-i0-{upper_bound}"))
.arg(format!("-i0-{upper_bound}"))
.succeeds();
result.no_stderr();