Some more clippy fixes, warnings are noisy

This commit is contained in:
2025-03-05 00:57:06 +00:00
parent d53661b9a0
commit 014ec5310c
8 changed files with 34 additions and 19 deletions
+6 -4
View File
@@ -1,8 +1,8 @@
use libm::include_font;
pub static FONT_SPLEEN_8X16: Font =
pub const FONT_SPLEEN_8X16: Font =
Font::new(include_font!("../../../resources/font/spleen-8x16.psf"));
pub static FONT_CP850_8X16: Font =
pub const FONT_CP850_8X16: Font =
Font::new(include_font!("../../../resources/font/cp850-8x16.psf"));
// pub struct Font(pub [[u8; 16]; 512]);
@@ -39,8 +39,10 @@ impl Font {
pub const fn height(&self) -> usize {
self.height
}
}
pub fn default() -> &'static Self {
&FONT_CP850_8X16
impl Default for Font {
fn default() -> Self {
FONT_CP850_8X16
}
}