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

remove unnecessary 'to_owned'

This commit is contained in:
Daniel Eades 2022-01-30 11:14:56 +01:00
parent 8bb6c4effa
commit f4c6ea0ee8
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ fn test_piped_to_dev_full() {
.set_stdout(dev_full) .set_stdout(dev_full)
.pipe_in_fixture("alpha.txt") .pipe_in_fixture("alpha.txt")
.fails() .fails()
.stderr_contains(&"No space left on device".to_owned()); .stderr_contains("No space left on device");
} }
} }
} }

View file

@ -263,7 +263,7 @@ fn test_mv_same_file_dot_dir() {
ucmd.arg(".") ucmd.arg(".")
.arg(".") .arg(".")
.fails() .fails()
.stderr_is("mv: '.' and '.' are the same file\n".to_string()); .stderr_is("mv: '.' and '.' are the same file\n");
} }
#[test] #[test]