Replace format("{}") with .to_string() where possible.

This commit is contained in:
2018-12-22 10:06:36 +01:00
parent 3b825ac933
commit 2f0c8ef2d4
20 changed files with 33 additions and 33 deletions

View File

@@ -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()
}
}