Skip to content
Snippets Groups Projects
Verified Commit 8e7183a7 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

refactor: more clippy

parent 42f106dc
No related branches found
No related tags found
No related merge requests found
Pipeline #1531 passed
...@@ -23,7 +23,7 @@ const LOGIC_RATIO: f32 = 2.0; ...@@ -23,7 +23,7 @@ const LOGIC_RATIO: f32 = 2.0;
const SCREEN_SCALE: f32 = 2.0; const SCREEN_SCALE: f32 = 2.0;
/// The base title to be used in the window. /// The base title to be used in the window.
static TITLE: &'static str = "Boytacean"; static TITLE: &str = "Boytacean";
pub struct Emulator { pub struct Emulator {
system: GameBoy, system: GameBoy,
...@@ -36,7 +36,7 @@ pub struct Emulator { ...@@ -36,7 +36,7 @@ pub struct Emulator {
impl Emulator { impl Emulator {
pub fn new(system: GameBoy, screen_scale: f32) -> Self { pub fn new(system: GameBoy, screen_scale: f32) -> Self {
Self { Self {
system: system, system,
graphics: Graphics::new( graphics: Graphics::new(
TITLE, TITLE,
DISPLAY_WIDTH as u32, DISPLAY_WIDTH as u32,
......
...@@ -49,12 +49,12 @@ impl Graphics { ...@@ -49,12 +49,12 @@ impl Graphics {
canvas.clear(); canvas.clear();
Self { Self {
canvas: canvas, canvas,
video_subsystem: video_subsystem, video_subsystem,
timer_subsystem: timer_subsystem, timer_subsystem,
audio_subsystem: audio_subsystem, audio_subsystem,
event_pump: event_pump, event_pump,
ttf_context: ttf_context, ttf_context,
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment