From 9648d3e22a8d0c3a45da38db36713308986c2ed7 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Sat, 5 Oct 2024 22:02:10 +0100 Subject: [PATCH] Fix clippy lints in games too --- examples/the-dungeon-puzzlers-lament/src/game.rs | 2 +- examples/the-hat-chooses-the-wizard/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/the-dungeon-puzzlers-lament/src/game.rs b/examples/the-dungeon-puzzlers-lament/src/game.rs index caa8a4c3..211d688d 100644 --- a/examples/the-dungeon-puzzlers-lament/src/game.rs +++ b/examples/the-dungeon-puzzlers-lament/src/game.rs @@ -100,7 +100,7 @@ struct Construction<'a, 'b> { background: &'a mut MapLoan<'b, RegularMap>, } -impl<'a, 'b> Drop for Construction<'a, 'b> { +impl Drop for Construction<'_, '_> { fn drop(&mut self) { self.background.set_visible(false); } diff --git a/examples/the-hat-chooses-the-wizard/src/lib.rs b/examples/the-hat-chooses-the-wizard/src/lib.rs index 35962051..e1e6bd98 100644 --- a/examples/the-hat-chooses-the-wizard/src/lib.rs +++ b/examples/the-hat-chooses-the-wizard/src/lib.rs @@ -273,7 +273,7 @@ struct Map<'a, 'b> { level: &'a Level, } -impl<'a, 'b> Map<'a, 'b> { +impl Map<'_, '_> { pub fn commit_position(&mut self, vram: &mut VRamManager) { self.background.set_pos(vram, self.position.floor()); self.foreground.set_pos(vram, self.position.floor());