Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Oct 10, 2023
1 parent 79f210c commit 38011f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarge-core/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl Gameboy {
}

#[inline] pub fn get_audio_device(&mut self) -> Option<&dyn AudioDevice> {
self.cpu.bus.apu.device.as_ref().map(|x| x.as_ref())
self.cpu.bus.apu.device.as_deref()
}

#[inline] pub fn get_audio_device_mut(&mut self) -> Option<&mut Box<dyn AudioDevice>> {
Expand Down

0 comments on commit 38011f2

Please sign in to comment.