From b65815cd062f7ede492baccd276b613d8afd3eb5 Mon Sep 17 00:00:00 2001 From: Justin Tracey Date: Fri, 21 Jan 2022 15:56:42 -0500 Subject: [PATCH] ls: fix clippy lints in tests --- tests/by-util/test_ls.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/by-util/test_ls.rs b/tests/by-util/test_ls.rs index f39b4d914..7d84759fa 100644 --- a/tests/by-util/test_ls.rs +++ b/tests/by-util/test_ls.rs @@ -2562,7 +2562,7 @@ fn test_ls_context2() { ts.ucmd() .args(&[c_flag, &"/"]) .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(), &"/"]) .succeeds() .stdout_only( - unwrap_or_return!(expected_result(&ts, &[&"-Z", &format.as_str(), &"/"])) - .stdout_str(), + unwrap_or_return!(expected_result(&ts, &["-Z", format.as_str(), "/"])).stdout_str(), ); } }