Fix clippy errors

This commit is contained in:
2025-03-03 15:51:39 +00:00
parent a0f5ce8797
commit 0a5269eeb0
6 changed files with 19 additions and 14 deletions
+3 -3
View File
@@ -15,8 +15,8 @@ pub struct Font {
}
impl Font {
pub const fn new(data: [[u8; 16]; 512]) -> Font {
Font {
pub const fn new(data: [[u8; 16]; 512]) -> Self {
Self {
width: 8,
height: 16,
length: data.len() as u16,
@@ -40,7 +40,7 @@ impl Font {
self.height
}
pub fn default() -> &'static Font {
pub fn default() -> &'static Self {
&FONT_CP850_8X16
}
}