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

fix: clippy issue

parent dd7c5107
No related branches found
No related tags found
No related merge requests found
Pipeline #2727 failed
......@@ -374,6 +374,7 @@ impl Apu {
0xff25 => self.glob_panning,
// 0xFF26 — NR52: Sound on/off
0xff26 => {
#[allow(clippy::bool_to_int_with_if)]
(if self.ch1_enabled { 0x01 } else { 0x00 }
| if self.ch2_enabled { 0x02 } else { 0x00 }
| if self.ch3_enabled && self.ch3_dac {
......
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