From ec759b5b9836f118f879df5a26664bcbd19e385f Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 3 Jan 2023 20:53:40 +0000 Subject: [PATCH] Remove .into_iter() suggested by clippy --- examples/hyperspace-roll/src/battle/display.rs | 2 -- examples/hyperspace-roll/src/graphics.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/examples/hyperspace-roll/src/battle/display.rs b/examples/hyperspace-roll/src/battle/display.rs index b1658233..ec6f6ddc 100644 --- a/examples/hyperspace-roll/src/battle/display.rs +++ b/examples/hyperspace-roll/src/battle/display.rs @@ -88,7 +88,6 @@ impl<'a> BattleScreenDisplay<'a> { let shield_sprite = SHIP_SPRITES.sprite_for_ship(Ship::Shield); let player_shield: Vec<_> = (0..5) - .into_iter() .map(|i| { let mut shield_obj = obj.object(obj.sprite(shield_sprite)); shield_obj @@ -101,7 +100,6 @@ impl<'a> BattleScreenDisplay<'a> { .collect(); let enemy_shield: Vec<_> = (0..5) - .into_iter() .map(|i| { let mut shield_obj = obj.object(obj.sprite(shield_sprite)); shield_obj diff --git a/examples/hyperspace-roll/src/graphics.rs b/examples/hyperspace-roll/src/graphics.rs index f9b75ff9..8a3f54ad 100644 --- a/examples/hyperspace-roll/src/graphics.rs +++ b/examples/hyperspace-roll/src/graphics.rs @@ -145,7 +145,6 @@ impl<'a> HealthBar<'a> { assert_eq!(max % 8, 0); let sprites = (0..(max / 8)) - .into_iter() .map(|i| { let health_sprite = obj.sprite(SMALL_SPRITES.red_bar(0));