mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
clippy fixes
This commit is contained in:
parent
418518a443
commit
55b3766c10
22 changed files with 95 additions and 92 deletions
|
@ -1863,7 +1863,7 @@ fn test_ls_recursive() {
|
|||
#[cfg(not(windows))]
|
||||
result.stdout_contains("a/b:\nb");
|
||||
#[cfg(windows)]
|
||||
result.stdout_contains(&"a\\b:\nb");
|
||||
result.stdout_contains("a\\b:\nb");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -2093,13 +2093,13 @@ fn test_ls_indicator_style() {
|
|||
.ucmd()
|
||||
.arg(format!("--indicator-style={}", opt))
|
||||
.succeeds()
|
||||
.stdout_contains(&"/");
|
||||
.stdout_contains("/");
|
||||
}
|
||||
|
||||
// Same test as above, but with the alternate flags.
|
||||
let options = vec!["--classify", "--file-type", "-p"];
|
||||
for opt in options {
|
||||
scene.ucmd().arg(opt).succeeds().stdout_contains(&"/");
|
||||
scene.ucmd().arg(opt).succeeds().stdout_contains("/");
|
||||
}
|
||||
|
||||
// Classify and File-Type all contain indicators for pipes and links.
|
||||
|
@ -2110,7 +2110,7 @@ fn test_ls_indicator_style() {
|
|||
.ucmd()
|
||||
.arg(format!("--indicator-style={}", opt))
|
||||
.succeeds()
|
||||
.stdout_contains(&"@");
|
||||
.stdout_contains("@");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3195,7 +3195,7 @@ fn test_ls_context_format() {
|
|||
] {
|
||||
let format = format!("--format={}", word);
|
||||
ts.ucmd()
|
||||
.args(&[&"-Z", &format.as_str(), &"/"])
|
||||
.args(&["-Z", format.as_str(), "/"])
|
||||
.succeeds()
|
||||
.stdout_only(
|
||||
unwrap_or_return!(expected_result(&ts, &["-Z", format.as_str(), "/"])).stdout_str(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue