diff --git a/src/rom.rs b/src/rom.rs
index 13c58ae96ee95d1af7e8ad846eec013f26702bbb..cc8c5b53365987a44e00601a77f7c0ead750c64c 100644
--- a/src/rom.rs
+++ b/src/rom.rs
@@ -412,7 +412,7 @@ impl Cartridge {
     }
 
     pub fn has_battery(&self) -> bool {
-        matches!(
+        return matches!(
             self.rom_type(),
             RomType::Mbc1RamBattery
                 | RomType::Mbc2Battery