1
Fork 0
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:
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

@ -335,7 +335,7 @@ fn wrong_line_order() {
.arg("fields_4.txt")
.fails()
.stdout_contains("7 g f 4 fg")
.stderr_is(&format!(
.stderr_is(format!(
"{0} {1}: fields_4.txt:5: is not sorted: 11 g 5 gh\n{0} {1}: input is not in sorted order\n",
ts.bin_path.to_string_lossy(),
ts.util_name
@ -347,7 +347,7 @@ fn wrong_line_order() {
.arg("fields_4.txt")
.fails()
.stdout_does_not_contain("7 g f 4 fg")
.stderr_is(&format!(
.stderr_is(format!(
"{0}: fields_4.txt:5: is not sorted: 11 g 5 gh\n",
ts.util_name
));
@ -361,7 +361,7 @@ fn both_files_wrong_line_order() {
.arg("fields_5.txt")
.fails()
.stdout_contains("5 e 3 ef")
.stderr_is(&format!(
.stderr_is(format!(
"{0} {1}: fields_5.txt:4: is not sorted: 3\n{0} {1}: fields_4.txt:5: is not sorted: 11 g 5 gh\n{0} {1}: input is not in sorted order\n",
ts.bin_path.to_string_lossy(),
ts.util_name
@ -373,7 +373,7 @@ fn both_files_wrong_line_order() {
.arg("fields_5.txt")
.fails()
.stdout_does_not_contain("5 e 3 ef")
.stderr_is(&format!(
.stderr_is(format!(
"{0}: fields_5.txt:4: is not sorted: 3\n",
ts.util_name
));