refactor: Add elided lifetime to result

See also:
- https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint
This commit is contained in:
Henrik Friedrichsen
2025-08-15 22:03:27 +02:00
parent 1f2c85f544
commit d62e935d18
3 changed files with 4 additions and 4 deletions

View File

@@ -226,12 +226,12 @@ impl Config {
}
/// Get the user configuration values.
pub fn values(&self) -> RwLockReadGuard<ConfigValues> {
pub fn values(&self) -> RwLockReadGuard<'_, ConfigValues> {
self.values.read().unwrap()
}
/// Get the runtime user state values.
pub fn state(&self) -> RwLockReadGuard<UserState> {
pub fn state(&self) -> RwLockReadGuard<'_, UserState> {
self.state.read().unwrap()
}

View File

@@ -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<Event> {
pub fn msg_iter(&self) -> TryIter<'_, Event> {
self.rx.try_iter()
}

View File

@@ -123,7 +123,7 @@ impl MprisPlayer {
}
#[zbus(property)]
fn metadata(&self) -> HashMap<String, Value> {
fn metadata(&self) -> HashMap<String, Value<'_>> {
let mut hm = HashMap::new();
let playable = self.queue.get_current();