Fix build with src/item/chest.rs:111:51 | 111 | let mut items: Vec> = items.into_values().flatten().collect(); | ^^^^^^^^^^^ | = note: see issue #75294 for more information --- a/src/item/chest.rs +++ b/src/item/chest.rs @@ -108,7 +108,7 @@ impl Chest { /// Remove the gold, items and equipment from a hero and return them as a new chest. pub fn drop(game: &mut game::Game) -> Self { let items: HashMap>> = game.inventory.drain().collect(); - let mut items: Vec> = items.into_values().flatten().collect(); + let mut items: Vec> = items.into_iter().map(|(_, v)| v).flatten().collect(); let sword = game.player.sword.take(); let shield = game.player.shield.take();