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:
parent
7ff4cb3f4e
commit
2f9fcf73fa
4 changed files with 8 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue