diff --git a/src/config.rs b/src/config.rs index be8ffcb..c42d111 100644 --- a/src/config.rs +++ b/src/config.rs @@ -226,12 +226,12 @@ impl Config { } /// Get the user configuration values. - pub fn values(&self) -> RwLockReadGuard { + pub fn values(&self) -> RwLockReadGuard<'_, ConfigValues> { self.values.read().unwrap() } /// Get the runtime user state values. - pub fn state(&self) -> RwLockReadGuard { + pub fn state(&self) -> RwLockReadGuard<'_, UserState> { self.state.read().unwrap() } diff --git a/src/events.rs b/src/events.rs index 2ebe614..7f317ed 100644 --- a/src/events.rs +++ b/src/events.rs @@ -33,7 +33,7 @@ impl EventManager { /// Return a non-blocking iterator over the messages awaiting handling. Calling `next()` on the /// iterator never blocks. - pub fn msg_iter(&self) -> TryIter { + pub fn msg_iter(&self) -> TryIter<'_, Event> { self.rx.try_iter() } diff --git a/src/mpris.rs b/src/mpris.rs index 446c791..5cfd159 100644 --- a/src/mpris.rs +++ b/src/mpris.rs @@ -123,7 +123,7 @@ impl MprisPlayer { } #[zbus(property)] - fn metadata(&self) -> HashMap { + fn metadata(&self) -> HashMap> { let mut hm = HashMap::new(); let playable = self.queue.get_current();