1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #2903 from jtracey/ls-test-clippy

ls: fix clippy lints in tests
This commit is contained in:
Sylvestre Ledru 2022-01-25 23:24:40 +01:00 committed by GitHub
commit f1dde86f9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2562,7 +2562,7 @@ fn test_ls_context2() {
ts.ucmd() ts.ucmd()
.args(&[c_flag, &"/"]) .args(&[c_flag, &"/"])
.succeeds() .succeeds()
.stdout_only(unwrap_or_return!(expected_result(&ts, &[c_flag, &"/"])).stdout_str()); .stdout_only(unwrap_or_return!(expected_result(&ts, &[c_flag, "/"])).stdout_str());
} }
} }
@ -2592,8 +2592,7 @@ fn test_ls_context_format() {
.args(&[&"-Z", &format.as_str(), &"/"]) .args(&[&"-Z", &format.as_str(), &"/"])
.succeeds() .succeeds()
.stdout_only( .stdout_only(
unwrap_or_return!(expected_result(&ts, &[&"-Z", &format.as_str(), &"/"])) unwrap_or_return!(expected_result(&ts, &["-Z", format.as_str(), "/"])).stdout_str(),
.stdout_str(),
); );
} }
} }