Font file is clippy approved.
-#[allow(dead_code)]
extern crate image;
use super::gl;
use image::GenericImageView;
@@ -20,10 +19,10 @@ impl Font {
pub fn new<S: ToString>(filename: S, width: u32, height: u32, tile_size: (u32, u32)) -> Font {
Font {
bitmap_file: filename.to_string(),
- width: width,
- height: height,
+ width,
+ height,
gl_id: None,
- tile_size: tile_size,
+ tile_size,
}
}
@@ -36,7 +35,7 @@ impl Font {
width: img.width(),
height: img.height(),
gl_id: None,
- tile_size: tile_size,
+ tile_size,
}
}
