mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Replace format("{}") with .to_string() where possible.
This commit is contained in:
@@ -55,13 +55,13 @@ impl Solution for Day09 {
|
||||
fn part1(&mut self, input: &mut Read) -> String {
|
||||
let (elves, marbles) = Day09::read_input(input);
|
||||
|
||||
format!("{}", winning_marbles(elves, marbles))
|
||||
winning_marbles(elves, marbles).to_string()
|
||||
}
|
||||
|
||||
fn part2(&mut self, input: &mut Read) -> String {
|
||||
let (elves, marbles) = Day09::read_input(input);
|
||||
|
||||
format!("{}", winning_marbles(elves, marbles * 100))
|
||||
winning_marbles(elves, marbles * 100).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user