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

fix: new clippy fixes

parent 816d7778
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #2612 failed
......@@ -192,8 +192,7 @@ impl Mmu {
}
if self.boot_active
&& self.mode == GameBoyMode::Cgb
&& addr >= 0x0200
&& addr <= 0x08ff
&& (0x0200..=0x08ff).contains(&addr)
{
return self.boot[addr as usize];
}
......
......@@ -1333,7 +1333,7 @@ impl Ppu {
let r = (first & 0x1f) << 3;
let g = (((first & 0xe0) >> 5) | ((second & 0x03) << 3)) << 3;
let b = ((second & 0x7c) >> 2) << 3;
[r as u8, g as u8, b as u8]
[r, g, b]
}
}
......
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