[2018][rust] cargo fmt

sorbet
Alpha Chen 6 years ago
parent 8e30e3155e
commit ea3cc23c7c

@ -28,7 +28,11 @@ fn part_two(input: &str, max_distance: usize) -> Result<String, Box<Error>> {
coords.total_distance(*coord) coords.total_distance(*coord)
}); });
let area = grid.locations.values().filter(|&&x| x < max_distance).count(); let area = grid
.locations
.values()
.filter(|&&x| x < max_distance)
.count();
Ok(area.to_string()) Ok(area.to_string())
} }

Loading…
Cancel
Save