diff --git a/src/ppu.rs b/src/ppu.rs
index ff39c2bd7f0f2d72f4f1db053bc0f56dc4066b5e..a82285a342147f9dcd3dc4c2807d40fb6cc010ec 100644
--- a/src/ppu.rs
+++ b/src/ppu.rs
@@ -731,6 +731,7 @@ impl Ppu {
             // 0xFF6B — OCPD/OBPD (CGB only)
             0xff6b => self.palettes_color[1][self.palette_address_obj as usize],
             // 0xFF6C — OPRI (CGB only)
+            #[allow(clippy::bool_to_int_with_if)]
             0xff6c => if self.obj_priority { 0x01 } else { 0x00 },
             _ => {
                 warnln!("Reading from unknown PPU location 0x{:04x}", addr);