code: Fix clippy warnings

This commit is contained in:
Sophie Herold 2022-11-04 19:27:43 +01:00
parent a2e6767584
commit 369b71b15c
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ fn freplace(input: String, args: &[&str]) -> String {
let mut parts = input.split("{}");
let mut output = parts.next().unwrap_or_default().to_string();
for (p, a) in parts.zip(args.iter()) {
output += &(a.to_string() + &p.to_string());
output += &(a.to_string() + p);
}
output
}