From 7ca2f4989fcca103b2663c9af97106c85227a846 Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Tue, 31 Aug 2021 22:06:00 +0200 Subject: [PATCH] ls: Hide unused variable warnings --- tests/by-util/test_ls.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/by-util/test_ls.rs b/tests/by-util/test_ls.rs index eb239977d..e6c23acc1 100644 --- a/tests/by-util/test_ls.rs +++ b/tests/by-util/test_ls.rs @@ -354,6 +354,7 @@ fn test_ls_long_format() { at.mkdir(&at.plus_as_string("test-long-dir/test-long-dir")); for arg in &["-l", "--long", "--format=long", "--format=verbose"] { + #[allow(unused_variables)] let result = scene.ucmd().arg(arg).arg("test-long-dir").succeeds(); // Assuming sane username do not have spaces within them. // A line of the output should be: @@ -373,6 +374,7 @@ fn test_ls_long_format() { ).unwrap()); } + #[allow(unused_variables)] 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. #[cfg(not(windows))]