From a3c86e86c775dcea8d37dda3f47faca426406904 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Thu, 17 Nov 2022 00:54:43 +0000
Subject: [PATCH] refactor: small code tune

---
 src/rom.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rom.rs b/src/rom.rs
index cc8c5b53..20ab1596 100644
--- a/src/rom.rs
+++ b/src/rom.rs
@@ -412,7 +412,7 @@ impl Cartridge {
     }
 
     pub fn has_battery(&self) -> bool {
-        return matches!(
+        matches!(
             self.rom_type(),
             RomType::Mbc1RamBattery
                 | RomType::Mbc2Battery
@@ -425,7 +425,7 @@ impl Cartridge {
                 | RomType::Mbc5RumbleRamBattery
                 | RomType::Mbc7SensorRumbleRamBattery
                 | RomType::HuC1RamBattery
-        );
+        )
     }
 
     pub fn ram_data_eager(&self) -> Vec<u8> {
-- 
GitLab