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

@ -473,8 +473,7 @@ fn test_tmpdir_absolute_path() {
.args(&["--tmpdir=a", path])
.fails()
.stderr_only(format!(
"mktemp: invalid template, '{}'; with --tmpdir, it may not be absolute\n",
path
"mktemp: invalid template, '{path}'; with --tmpdir, it may not be absolute\n"
));
}
@ -691,7 +690,7 @@ fn test_tmpdir_env_var() {
let filename = result.no_stderr().stdout_str().trim_end();
#[cfg(not(windows))]
{
let template = format!(".{}tmp.XXXXXXXXXX", MAIN_SEPARATOR);
let template = format!(".{MAIN_SEPARATOR}tmp.XXXXXXXXXX");
assert_matches_template!(&template, filename);
}
// On Windows, `env::temp_dir()` seems to give an absolute path
@ -720,7 +719,7 @@ fn test_tmpdir_env_var() {
let filename = result.no_stderr().stdout_str().trim_end();
#[cfg(not(windows))]
{
let template = format!(".{}XXX", MAIN_SEPARATOR);
let template = format!(".{MAIN_SEPARATOR}XXX");
assert_matches_template!(&template, filename);
}
#[cfg(windows)]