diff --git a/2018/rust/src/bin/day_06.rs b/2018/rust/src/bin/day_06.rs index 1a53587..7c63ed3 100644 --- a/2018/rust/src/bin/day_06.rs +++ b/2018/rust/src/bin/day_06.rs @@ -28,7 +28,11 @@ fn part_two(input: &str, max_distance: usize) -> Result> { 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()) }