From fb264f5cd7a787301172ef5b480bb2e521bb32ba Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 26 Dec 2018 14:14:19 -0700 Subject: [PATCH] [2018][rust][15] fmt --- 2018/rust/src/bin/day_15.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {