Remove .into_iter() suggested by clippy

This commit is contained in:
Gwilym Kuiper 2023-01-03 20:53:40 +00:00
parent 24f6f19ab3
commit ec759b5b98
2 changed files with 0 additions and 3 deletions

View file

@ -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

View file

@ -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));