Fix clippy lints in games too

This commit is contained in:
Gwilym Inzani 2024-10-05 22:02:10 +01:00
parent 828339779b
commit 9648d3e22a
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ struct Construction<'a, 'b> {
background: &'a mut MapLoan<'b, RegularMap>, background: &'a mut MapLoan<'b, RegularMap>,
} }
impl<'a, 'b> Drop for Construction<'a, 'b> { impl Drop for Construction<'_, '_> {
fn drop(&mut self) { fn drop(&mut self) {
self.background.set_visible(false); self.background.set_visible(false);
} }

View file

@ -273,7 +273,7 @@ struct Map<'a, 'b> {
level: &'a Level, level: &'a Level,
} }
impl<'a, 'b> Map<'a, 'b> { impl Map<'_, '_> {
pub fn commit_position(&mut self, vram: &mut VRamManager) { pub fn commit_position(&mut self, vram: &mut VRamManager) {
self.background.set_pos(vram, self.position.floor()); self.background.set_pos(vram, self.position.floor());
self.foreground.set_pos(vram, self.position.floor()); self.foreground.set_pos(vram, self.position.floor());