Skip to content
Snippets Groups Projects
Verified Commit 85bb6fdb authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: replace boolean match with matches!

parent dc3c7241
No related branches found
No related tags found
No related merge requests found
Pipeline #4458 failed
......@@ -199,28 +199,18 @@ impl BootRom {
}
pub fn is_dmg(&self) -> bool {
match self {
BootRom::Dmg | BootRom::DmgBootix => true,
_ => false,
}
matches!(self, BootRom::Dmg | BootRom::DmgBootix)
}
pub fn is_cgb(&self) -> bool {
match self {
BootRom::Cgb => true,
_ => false,
}
matches!(self, BootRom::Cgb)
}
pub fn is_dmg_compat(&self) -> bool {
match self {
BootRom::Dmg
| BootRom::Sgb
| BootRom::DmgBootix
| BootRom::MgbBootix
| BootRom::Cgb => true,
_ => false,
}
matches!(
self,
BootRom::Dmg | BootRom::Sgb | BootRom::DmgBootix | BootRom::MgbBootix | BootRom::Cgb
)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment