mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
clippy: fix warnings introduced by Rust 1.74
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user