mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
fix clippy warnings
This commit is contained in:
parent
e576f0685e
commit
e7d87b8eee
|
@ -57,7 +57,8 @@ impl Font {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Font {
|
impl Font {
|
||||||
pub fn render_text<'a>(&'a self, tile_pos: Vector2D<u16>) -> TextRenderer<'a> {
|
#[must_use]
|
||||||
|
pub fn render_text(&self, tile_pos: Vector2D<u16>) -> TextRenderer<'_> {
|
||||||
TextRenderer {
|
TextRenderer {
|
||||||
current_x_pos: 0,
|
current_x_pos: 0,
|
||||||
current_y_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> {
|
impl<'a, 'b, 'c> TextWriter<'a, 'b, 'c> {
|
||||||
pub fn commit(self) {
|
pub fn commit(self) {
|
||||||
self.text_renderer.commit(self.bg, self.vram_manager)
|
self.text_renderer.commit(self.bg, self.vram_manager);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue