mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Remove .into_iter() suggested by clippy
This commit is contained in:
parent
24f6f19ab3
commit
ec759b5b98
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue