diff --git a/2018/rust/src/bin/day_15.rs b/2018/rust/src/bin/day_15.rs index 8ace5dc..035020c 100644 --- a/2018/rust/src/bin/day_15.rs +++ b/2018/rust/src/bin/day_15.rs @@ -349,9 +349,7 @@ impl Unit { return HashSet::new(); } - targets.iter() - .flat_map(|x| map.open_neighbors(x)) - .collect() + targets.iter().flat_map(|x| map.open_neighbors(x)).collect() } fn reachable(&self, square: &Square, map: &Map) -> HashMap {