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

@@ -121,7 +121,7 @@ impl Solution for Day17 {
let result = self.contained.len()
+ self.flowing.len() - self.ymin;
format!("{}", result)
result.to_string()
}
fn part2(&mut self, input: &mut Read) -> String {
@@ -129,7 +129,7 @@ impl Solution for Day17 {
self.descend((500, 0));
format!("{}", self.contained.len())
self.contained.len().to_string()
}
}