[2018][rust][12] fmt

sorbet
Alpha Chen 6 years ago
parent a09a82c05d
commit 1a0318127f

@ -16,7 +16,7 @@ fn solve(input: &str) -> Result<String, Box<Error>> {
} }
let pots = generation.next().unwrap(); 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(); let output: isize = indices.iter().sum();
Ok(output.to_string()) Ok(output.to_string())

Loading…
Cancel
Save