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

clippy: fix warnings introduced with Rust 1.67.0

This commit is contained in:
Daniel Hofstetter 2023-01-27 10:29:45 +01:00
parent fc7e51a4f8
commit f6b646e4e5
172 changed files with 835 additions and 1034 deletions

View file

@ -94,7 +94,7 @@ fn test_preference_of_userspec() {
.arg("fake")
.arg("-G")
.arg("ABC,DEF")
.arg(format!("--userspec={}:{}", username, group_name))
.arg(format!("--userspec={username}:{group_name}"))
.fails();
result.code_is(125);
@ -113,10 +113,7 @@ fn test_default_shell() {
at.mkdir(dir);
let shell = std::env::var("SHELL").unwrap_or_else(|_| "/bin/sh".to_string());
let expected = format!(
"chroot: failed to run command '{}': No such file or directory",
shell
);
let expected = format!("chroot: failed to run command '{shell}': No such file or directory");
if let Ok(result) = run_ucmd_as_root(&ts, &[dir]) {
result.stderr_contains(expected);