From 79879d1ae77335846a08bd3f84d92c58220d1cdb Mon Sep 17 00:00:00 2001 From: hodasemi Date: Thu, 27 Feb 2025 13:52:14 +0100 Subject: [PATCH] Improve context interfdace --- Cargo.toml | 1 - src/context_interface.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5c72e3a..b169036 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,4 +18,3 @@ anyhow = { version = "1.0.86", features = ["backtrace"] } audio = { git = "https://gavania.de/hodasemi/audio.git", optional = true } [features] -default = ["audio"] diff --git a/src/context_interface.rs b/src/context_interface.rs index 501bbff..380aef4 100644 --- a/src/context_interface.rs +++ b/src/context_interface.rs @@ -18,7 +18,7 @@ pub trait ContextInterface: Send + Sync { fn height(&self) -> u32; #[cfg(feature = "audio")] - fn sound_handler(&self) -> std::sync::MutexGuard<'_, SoundHandler>; + fn sound_handler(&mut self) -> &mut SoundHandler; } pub enum TargetMode {