mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 21:30:31 +01:00
Replace format("{}") with .to_string() where possible.
This commit is contained in:
@@ -50,7 +50,7 @@ impl Solution for Day19 {
|
||||
cpu.registers[self.ip] += 1;
|
||||
}
|
||||
|
||||
format!("{}", cpu.registers[0])
|
||||
cpu.registers[0].to_string()
|
||||
}
|
||||
|
||||
fn part2(&mut self, input: &mut Read) -> String {
|
||||
@@ -73,7 +73,7 @@ impl Solution for Day19 {
|
||||
cpu.registers[self.ip] += 1;
|
||||
}
|
||||
|
||||
format!("{}", cpu.registers[0])
|
||||
cpu.registers[0].to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user