diff --git a/src/rom.rs b/src/rom.rs index cc8c5b53365987a44e00601a77f7c0ead750c64c..20ab159627ceda2868c4e8449e57cf4d3abd4a55 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> {