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:
@@ -111,11 +111,11 @@ impl Solution for Day06 {
|
||||
.filter_map(claim_filter)
|
||||
.filter(|x| !infinite.contains(x)).grouping_count();
|
||||
|
||||
format!("{}", counts.values().max().unwrap())
|
||||
counts.values().max().unwrap().to_string()
|
||||
}
|
||||
|
||||
fn part2(&mut self, input: &mut Read) -> String {
|
||||
format!("{}", self.part2_with_limit(input, 10_000))
|
||||
self.part2_with_limit(input, 10_000).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user