Some more clippy fixes, warnings are noisy
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user