From 38011f2f2b1cf32a746b8a031e43fbca68ec9a85 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 11 Oct 2023 01:58:10 +0200 Subject: [PATCH] clean up --- yarge-core/src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarge-core/src/api.rs b/yarge-core/src/api.rs index 6ee6f1f..fe55451 100644 --- a/yarge-core/src/api.rs +++ b/yarge-core/src/api.rs @@ -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> {