From c3643e2c5082216b8c59d6dcd2560af71c446072 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Sun, 13 Nov 2022 11:08:38 +0000
Subject: [PATCH] refactor: more clippy

---
 examples/sdl/src/main.rs |  4 ++--
 examples/sdl/src/util.rs | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/examples/sdl/src/main.rs b/examples/sdl/src/main.rs
index e72b7a05..b5ea07fc 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 8d5d93d7..abb5c7e4 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,
         }
     }
 
-- 
GitLab