Fix clippy errors
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user