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:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user