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 {