mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-10 00:51:34 +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 shield_sprite = SHIP_SPRITES.sprite_for_ship(Ship::Shield);
|
||||||
|
|
||||||
let player_shield: Vec<_> = (0..5)
|
let player_shield: Vec<_> = (0..5)
|
||||||
.into_iter()
|
|
||||||
.map(|i| {
|
.map(|i| {
|
||||||
let mut shield_obj = obj.object(obj.sprite(shield_sprite));
|
let mut shield_obj = obj.object(obj.sprite(shield_sprite));
|
||||||
shield_obj
|
shield_obj
|
||||||
|
@ -101,7 +100,6 @@ impl<'a> BattleScreenDisplay<'a> {
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let enemy_shield: Vec<_> = (0..5)
|
let enemy_shield: Vec<_> = (0..5)
|
||||||
.into_iter()
|
|
||||||
.map(|i| {
|
.map(|i| {
|
||||||
let mut shield_obj = obj.object(obj.sprite(shield_sprite));
|
let mut shield_obj = obj.object(obj.sprite(shield_sprite));
|
||||||
shield_obj
|
shield_obj
|
||||||
|
|
|
@ -145,7 +145,6 @@ impl<'a> HealthBar<'a> {
|
||||||
assert_eq!(max % 8, 0);
|
assert_eq!(max % 8, 0);
|
||||||
|
|
||||||
let sprites = (0..(max / 8))
|
let sprites = (0..(max / 8))
|
||||||
.into_iter()
|
|
||||||
.map(|i| {
|
.map(|i| {
|
||||||
let health_sprite = obj.sprite(SMALL_SPRITES.red_bar(0));
|
let health_sprite = obj.sprite(SMALL_SPRITES.red_bar(0));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue