From d671a8ae420c748577c267c3e35babd5a96056f3 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 19 Oct 2022 19:14:54 -0600 Subject: [PATCH] map+flatten->flat_map --- src/ship/map/maps.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ship/map/maps.rs b/src/ship/map/maps.rs index 6eb5be3..5d04291 100644 --- a/src/ship/map/maps.rs +++ b/src/ship/map/maps.rs @@ -281,10 +281,9 @@ impl Maps { Maps { enemy_data: map_variants.iter() - .map(|map_variant| { + .flat_map(|map_variant| { enemy_data_from_map_data(map_variant, &room_mode.episode()) }) - .flatten() .map(|enemy| apply_rare_enemy(enemy, rare_monster_table, event)) .collect(), object_data: map_variants.iter()