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

clippy: fix warnings introduced by Rust 1.74

This commit is contained in:
Daniel Hofstetter 2023-11-16 16:02:38 +01:00
parent 7ff4cb3f4e
commit 2f9fcf73fa
4 changed files with 8 additions and 10 deletions

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()