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

refactor: added default APU implementation

Silences clippy.
parent c391d06f
No related branches found
No related tags found
1 merge request!19Initial tentative audio support 🔉
Pipeline #2272 failed
......@@ -106,11 +106,9 @@ impl Apu {
}
pub fn read(&mut self, addr: u16) -> u8 {
match addr {
_ => {
warnln!("Reading from unknown APU location 0x{:04x}", addr);
0xff
}
{
warnln!("Reading from unknown APU location 0x{:04x}", addr);
0xff
}
}
......@@ -262,3 +260,9 @@ impl Apu {
self.output_buffer.clear();
}
}
impl Default for Apu {
fn default() -> Self {
Self::new()
}
}
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