diff --git a/2018/rust/src/bin/day_12.rs b/2018/rust/src/bin/day_12.rs index 960c8a9..9f3c2bd 100644 --- a/2018/rust/src/bin/day_12.rs +++ b/2018/rust/src/bin/day_12.rs @@ -16,7 +16,7 @@ fn solve(input: &str) -> Result> { } let pots = generation.next().unwrap(); - let indices: Vec<_> = pots.iter().filter(|(_,&v)| v).map(|(&k,_)| k).collect(); + let indices: Vec<_> = pots.iter().filter(|(_, &v)| v).map(|(&k, _)| k).collect(); let output: isize = indices.iter().sum(); Ok(output.to_string())