diff --git a/src/router/ng/mod.rs b/src/router/ng/mod.rs index 7a73aa4..3fdb54c 100644 --- a/src/router/ng/mod.rs +++ b/src/router/ng/mod.rs @@ -385,14 +385,13 @@ pub fn calculate_navmesh( }); */ } - Some(x) => { - x.map(|(band_uid, _)| { + Some(x) => x + .map(|(band_uid, _)| { RelaxedPath::Normal( *board.bands_by_id().get_by_right(&band_uid).unwrap(), ) }) - .collect::>() - } + .collect::>(), }; if bands != *barrier0 { @@ -430,14 +429,13 @@ pub fn calculate_navmesh( }); */ } - Some(x) => { - x.map(|(band_uid, _)| { + Some(x) => x + .map(|(band_uid, _)| { RelaxedPath::Normal( *board.bands_by_id().get_by_right(&band_uid).unwrap(), ) }) - .collect::>() - } + .collect::>(), }; bands.reverse();