1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +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

@ -425,7 +425,7 @@ fn test_numeric_dynamic_suffix_length() {
ucmd.args(&["-d", "-b", "1", "ninetyonebytes.txt"])
.succeeds();
for i in 0..90 {
let filename = format!("x{:02}", i);
let filename = format!("x{i:02}");
let contents = file_read(&at, &filename);
assert_eq!(contents, "a");
}
@ -447,7 +447,7 @@ fn test_hex_dynamic_suffix_length() {
ucmd.args(&["-x", "-b", "1", "twohundredfortyonebytes.txt"])
.succeeds();
for i in 0..240 {
let filename = format!("x{:02x}", i);
let filename = format!("x{i:02x}");
let contents = file_read(&at, &filename);
assert_eq!(contents, "a");
}