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:
@@ -92,7 +92,7 @@ impl Day04 {
|
||||
let best_minute = sleepers[best_sleeper].iter().enumerate()
|
||||
.max_by(|&(_, a), &(_, b)| a.cmp(b)).unwrap().0;
|
||||
|
||||
format!("{}", best_sleeper * (best_minute as usize))
|
||||
(best_sleeper * (best_minute as usize)).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user