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:
parent
fc7e51a4f8
commit
f6b646e4e5
172 changed files with 835 additions and 1034 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue