From e7d87b8eeeb50ec6657ffbaecee7afe60e57d852 Mon Sep 17 00:00:00 2001 From: jem Date: Sat, 19 Nov 2022 15:57:38 +0000 Subject: [PATCH] fix clippy warnings --- agb/src/display/font.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agb/src/display/font.rs b/agb/src/display/font.rs index 9527aa75..ddc3a672 100644 --- a/agb/src/display/font.rs +++ b/agb/src/display/font.rs @@ -57,7 +57,8 @@ impl Font { } impl Font { - pub fn render_text<'a>(&'a self, tile_pos: Vector2D) -> TextRenderer<'a> { + #[must_use] + pub fn render_text(&self, tile_pos: Vector2D) -> TextRenderer<'_> { TextRenderer { current_x_pos: 0, current_y_pos: 0, @@ -100,7 +101,7 @@ impl<'a, 'b, 'c> Write for TextWriter<'a, 'b, 'c> { } impl<'a, 'b, 'c> TextWriter<'a, 'b, 'c> { pub fn commit(self) { - self.text_renderer.commit(self.bg, self.vram_manager) + self.text_renderer.commit(self.bg, self.vram_manager); } }