diff --git a/examples/sdl/src/main.rs b/examples/sdl/src/main.rs index e72b7a05e7dcd6b1c1d098e72dec6ccada22262a..b5ea07fcd43f280277bf505bc46235d38382cc86 100644 --- a/examples/sdl/src/main.rs +++ b/examples/sdl/src/main.rs @@ -23,7 +23,7 @@ const LOGIC_RATIO: f32 = 2.0; const SCREEN_SCALE: f32 = 2.0; /// The base title to be used in the window. -static TITLE: &'static str = "Boytacean"; +static TITLE: &str = "Boytacean"; pub struct Emulator { system: GameBoy, @@ -36,7 +36,7 @@ pub struct Emulator { impl Emulator { pub fn new(system: GameBoy, screen_scale: f32) -> Self { Self { - system: system, + system, graphics: Graphics::new( TITLE, DISPLAY_WIDTH as u32, diff --git a/examples/sdl/src/util.rs b/examples/sdl/src/util.rs index 8d5d93d7f39a6e8d4d6c224a290980e24e15aaea..abb5c7e46b05f0bb7099ecd72c14f66f2ea69b33 100644 --- a/examples/sdl/src/util.rs +++ b/examples/sdl/src/util.rs @@ -49,12 +49,12 @@ impl Graphics { canvas.clear(); Self { - canvas: canvas, - video_subsystem: video_subsystem, - timer_subsystem: timer_subsystem, - audio_subsystem: audio_subsystem, - event_pump: event_pump, - ttf_context: ttf_context, + canvas, + video_subsystem, + timer_subsystem, + audio_subsystem, + event_pump, + ttf_context, } }