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

fix: clippy issue

parent 0bc019dc
No related branches found
No related tags found
1 merge request!26Make dmg-audio tests pass
Pipeline #3037 passed
......@@ -341,7 +341,7 @@ impl Apu {
}
pub fn read(&mut self, addr: u16) -> u8 {
let value = match addr {
match addr {
// 0xFF10 — NR10: Channel 1 sweep
0xff10 => {
(self.ch1_sweep_slope & 0x07)
......@@ -442,9 +442,7 @@ impl Apu {
warnln!("Reading from unknown APU location 0x{:04x}", addr);
0xff
}
};
value
}
}
pub fn write(&mut self, addr: u16, value: u8) {
......
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