[2018][rust][04] cargo fmt

sorbet
Alpha Chen 6 years ago
parent 230a368660
commit b69bfd2821

@ -44,9 +44,7 @@ fn solve(input: &str) -> Result<String, Box<Error>> {
// Part Two // Part Two
let (guard, (minute, _)) = stats let (guard, (minute, _)) = stats
.iter() .iter()
.flat_map(|(k, minute_counts)| { .flat_map(|(k, minute_counts)| minute_counts.iter().max_by_key(|(_, &v)| v).map(|v| (k, v)))
minute_counts.iter().max_by_key(|(_, &v)| v).map(|v| (k, v))
})
.max_by_key(|(_, (_, &v))| v) .max_by_key(|(_, (_, &v))| v)
.unwrap(); .unwrap();

Loading…
Cancel
Save