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:
@@ -194,7 +194,7 @@ impl Day15 {
|
||||
fn return_score(&self, rounds: usize) -> String {
|
||||
let result: usize = rounds * self.units.iter().map(|x| x.hp as usize)
|
||||
.sum::<usize>();
|
||||
format!("{}", result)
|
||||
result.to_string()
|
||||
}
|
||||
|
||||
fn set_elf_power(&mut self, power: u8) {
|
||||
|
||||
Reference in New Issue
Block a user