chore: fix several clippy warnings

This commit is contained in:
2021-04-04 01:19:39 -05:00
parent cb1bcdb859
commit 4dd7a0d9ce
4 changed files with 14 additions and 13 deletions

View File

@@ -214,8 +214,8 @@ impl Bus {
0xFF01 => self.serial.next = byte,
0xFF02 => self.serial.control = byte.into(),
0xFF04 => self.timer.divider = 0x00,
0xFF05 => self.timer.counter = byte.into(),
0xFF06 => self.timer.modulo = byte.into(),
0xFF05 => self.timer.counter = byte,
0xFF06 => self.timer.modulo = byte,
0xFF07 => self.timer.control = byte.into(),
0xFF0F => self.set_interrupt_flag(byte),
0xFF11 => self.sound.ch1.sound_duty = byte.into(),