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

fix: small clippy issue

parent 7f0eac3f
No related branches found
No related tags found
1 merge request!27Fix CGB-ACID2 test
Pipeline #2921 failed
...@@ -731,6 +731,7 @@ impl Ppu { ...@@ -731,6 +731,7 @@ impl Ppu {
// 0xFF6B — OCPD/OBPD (CGB only) // 0xFF6B — OCPD/OBPD (CGB only)
0xff6b => self.palettes_color[1][self.palette_address_obj as usize], 0xff6b => self.palettes_color[1][self.palette_address_obj as usize],
// 0xFF6C — OPRI (CGB only) // 0xFF6C — OPRI (CGB only)
#[allow(clippy::bool_to_int_with_if)]
0xff6c => if self.obj_priority { 0x01 } else { 0x00 }, 0xff6c => if self.obj_priority { 0x01 } else { 0x00 },
_ => { _ => {
warnln!("Reading from unknown PPU location 0x{:04x}", addr); warnln!("Reading from unknown PPU location 0x{:04x}", addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment