From 8af673501dedf591883683af60f0c9e40198d65a Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 23 Mar 2022 20:56:05 +0000 Subject: [PATCH] cargo fix in hat chooses wizard --- examples/the-hat-chooses-the-wizard/src/enemies.rs | 6 +++--- examples/the-hat-chooses-the-wizard/src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/the-hat-chooses-the-wizard/src/enemies.rs b/examples/the-hat-chooses-the-wizard/src/enemies.rs index 106b5286..b4182dae 100644 --- a/examples/the-hat-chooses-the-wizard/src/enemies.rs +++ b/examples/the-hat-chooses-the-wizard/src/enemies.rs @@ -2,7 +2,7 @@ use crate::TAG_MAP; use super::{sfx::SfxPlayer, Entity, FixedNumberType, HatState, Level}; use agb::{ - display::object::{ObjectController, Size, Tag}, + display::object::{ObjectController, Tag}, fixnum::Vector2D, }; @@ -140,7 +140,7 @@ pub struct Slime<'a> { impl<'a> Slime<'a> { fn new(object: &'a ObjectController, start_pos: Vector2D) -> Self { - let mut slime = Slime { + let slime = Slime { enemy_info: EnemyInfo::new(object, start_pos, (14u16, 14u16).into()), state: SlimeState::Idle, }; @@ -262,7 +262,7 @@ pub struct Snail<'a> { impl<'a> Snail<'a> { fn new(object: &'a ObjectController, start_pos: Vector2D) -> Self { - let mut snail = Snail { + let snail = Snail { enemy_info: EnemyInfo::new(object, start_pos, (16u16, 16u16).into()), state: SnailState::Idle(0), }; diff --git a/examples/the-hat-chooses-the-wizard/src/main.rs b/examples/the-hat-chooses-the-wizard/src/main.rs index 6831b004..1589e1b4 100644 --- a/examples/the-hat-chooses-the-wizard/src/main.rs +++ b/examples/the-hat-chooses-the-wizard/src/main.rs @@ -5,7 +5,7 @@ extern crate alloc; use agb::{ display::{ - object::{Graphics, Object, ObjectController, Sprite, Tag, TagMap}, + object::{Graphics, Object, ObjectController, Tag, TagMap}, tiled::{ InfiniteScrolledMap, PartialUpdateStatus, TileFormat, TileSet, TileSetting, VRamManager, }, @@ -813,7 +813,7 @@ fn main(mut agb: agb::Gba) -> ! { loop { vram.set_background_palettes(tile_sheet::background.palettes); - let mut object = agb.display.object.get(); + let object = agb.display.object.get(); let mut timer_controller = agb.timers.timers(); let mut mixer = agb.mixer.mixer(&mut timer_controller.timer0);