clippy: fix warnings introduced by Rust 1.74

This commit is contained in:
Daniel Hofstetter
2023-11-16 16:21:28 +01:00
parent 7ff4cb3f4e
commit 2f9fcf73fa
4 changed files with 8 additions and 10 deletions
+2 -4
View File
@@ -21,11 +21,9 @@ fn test_users_check_name() {
#[cfg(target_os = "linux")]
let util_name = util_name!();
#[cfg(target_vendor = "apple")]
let util_name = format!("g{}", util_name!());
let util_name = &format!("g{}", util_name!());
// note: clippy::needless_borrow *false positive*
#[allow(clippy::needless_borrow)]
let expected = TestScenario::new(&util_name)
let expected = TestScenario::new(util_name)
.cmd(util_name)
.env("LC_ALL", "C")
.succeeds()