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

@ -4,7 +4,7 @@ use glob::glob;
/// Returns a string of numbers with the given range, each on a new line.
/// The upper bound is not included.
fn generate(from: u32, to: u32) -> String {
(from..to).fold(String::new(), |acc, v| format!("{}{}\n", acc, v))
(from..to).fold(String::new(), |acc, v| format!("{acc}{v}\n"))
}
#[test]