From ea3cc23c7c05988839de4607fdb2804e9306bd0b Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 7 Dec 2018 07:36:58 -0800 Subject: [PATCH] [2018][rust] cargo fmt --- 2018/rust/src/bin/day_06.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()) }