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); } }