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

@@ -87,7 +87,7 @@ impl Solution for Day14 {
input.read_to_string(&mut buf).unwrap();
let input = buf.trim().parse().unwrap();
format!("{}", find_first(input, buf.trim().len()))
find_first(input, buf.trim().len()).to_string()
}
}