mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 13:20:32 +01:00
Replace format("{}") with .to_string() where possible.
This commit is contained in:
@@ -78,7 +78,7 @@ impl common::Solution for Day03 {
|
||||
.filter(|&&x| x > 1)
|
||||
.count();
|
||||
|
||||
format!("{}", multi_claim)
|
||||
multi_claim.to_string()
|
||||
}
|
||||
|
||||
fn part2(&mut self, input: &mut io::Read) -> String {
|
||||
@@ -89,7 +89,7 @@ impl common::Solution for Day03 {
|
||||
.position(|x| x.range().all(|x| claims[&x] == 1))
|
||||
.unwrap();
|
||||
|
||||
format!("{}", uncontested + 1)
|
||||
(uncontested + 1).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user