Address cargo clippy output.

This commit is contained in:
2021-12-05 14:51:58 -08:00
parent 5b65e8ec71
commit 45f780c1ca
6 changed files with 21 additions and 33 deletions

View File

@@ -79,7 +79,7 @@ use aoc_runner_derive::{aoc, aoc_generator};
/// Reads text file containing one integer per line, and parses them into `Vec<u32>`.
#[aoc_generator(day1)]
fn parse(input: &str) -> Result<Vec<u32>> {
input.split("\n").map(|s| Ok(s.parse()?)).collect()
input.split('\n').map(|s| Ok(s.parse()?)).collect()
}
#[aoc(day1, part1)]