mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
clippy: fix redundant_clone lint warnings in tests
This commit is contained in:
parent
2ee782fcf1
commit
29e5d0b42b
4 changed files with 19 additions and 19 deletions
|
@ -471,7 +471,7 @@ fn test_chown_fail_id() {
|
|||
#[test]
|
||||
fn test_chown_only_user_id_nonexistent_user() {
|
||||
let ts = TestScenario::new(util_name!());
|
||||
let at = ts.fixtures.clone();
|
||||
let at = &ts.fixtures;
|
||||
at.touch("f");
|
||||
if let Ok(result) = run_ucmd_as_root(&ts, &["12345", "f"]) {
|
||||
result.success().no_stdout().no_stderr();
|
||||
|
@ -537,7 +537,7 @@ fn test_chown_only_group_id() {
|
|||
#[test]
|
||||
fn test_chown_only_group_id_nonexistent_group() {
|
||||
let ts = TestScenario::new(util_name!());
|
||||
let at = ts.fixtures.clone();
|
||||
let at = &ts.fixtures;
|
||||
at.touch("f");
|
||||
if let Ok(result) = run_ucmd_as_root(&ts, &[":12345", "f"]) {
|
||||
result.success().no_stdout().no_stderr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue