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

ls: Hide unused variable warnings

This commit is contained in:
Jan Verbeek 2021-08-31 22:06:00 +02:00
parent ffe63945b7
commit 7ca2f4989f

View file

@ -354,6 +354,7 @@ fn test_ls_long_format() {
at.mkdir(&at.plus_as_string("test-long-dir/test-long-dir")); at.mkdir(&at.plus_as_string("test-long-dir/test-long-dir"));
for arg in &["-l", "--long", "--format=long", "--format=verbose"] { for arg in &["-l", "--long", "--format=long", "--format=verbose"] {
#[allow(unused_variables)]
let result = scene.ucmd().arg(arg).arg("test-long-dir").succeeds(); let result = scene.ucmd().arg(arg).arg("test-long-dir").succeeds();
// Assuming sane username do not have spaces within them. // Assuming sane username do not have spaces within them.
// A line of the output should be: // A line of the output should be:
@ -373,6 +374,7 @@ fn test_ls_long_format() {
).unwrap()); ).unwrap());
} }
#[allow(unused_variables)]
let result = scene.ucmd().arg("-lan").arg("test-long-dir").succeeds(); let result = scene.ucmd().arg("-lan").arg("test-long-dir").succeeds();
// This checks for the line with the .. entry. The uname and group should be digits. // This checks for the line with the .. entry. The uname and group should be digits.
#[cfg(not(windows))] #[cfg(not(windows))]