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:
@@ -226,12 +226,12 @@ impl Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get the user configuration values.
|
/// Get the user configuration values.
|
||||||
pub fn values(&self) -> RwLockReadGuard<ConfigValues> {
|
pub fn values(&self) -> RwLockReadGuard<'_, ConfigValues> {
|
||||||
self.values.read().unwrap()
|
self.values.read().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the runtime user state values.
|
/// Get the runtime user state values.
|
||||||
pub fn state(&self) -> RwLockReadGuard<UserState> {
|
pub fn state(&self) -> RwLockReadGuard<'_, UserState> {
|
||||||
self.state.read().unwrap()
|
self.state.read().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ impl EventManager {
|
|||||||
|
|
||||||
/// Return a non-blocking iterator over the messages awaiting handling. Calling `next()` on the
|
/// Return a non-blocking iterator over the messages awaiting handling. Calling `next()` on the
|
||||||
/// iterator never blocks.
|
/// iterator never blocks.
|
||||||
pub fn msg_iter(&self) -> TryIter<Event> {
|
pub fn msg_iter(&self) -> TryIter<'_, Event> {
|
||||||
self.rx.try_iter()
|
self.rx.try_iter()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ impl MprisPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn metadata(&self) -> HashMap<String, Value> {
|
fn metadata(&self) -> HashMap<String, Value<'_>> {
|
||||||
let mut hm = HashMap::new();
|
let mut hm = HashMap::new();
|
||||||
|
|
||||||
let playable = self.queue.get_current();
|
let playable = self.queue.get_current();
|
||||||
|
|||||||
Reference in New Issue
Block a user