chore: Fix warnings for Rust 1.89 (#32378)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
@@ -150,7 +150,7 @@ impl<T> Drop for Changed<'_, T> {
|
||||
}
|
||||
|
||||
impl<T> Receiver<T> {
|
||||
pub fn borrow(&mut self) -> parking_lot::MappedRwLockReadGuard<T> {
|
||||
pub fn borrow(&mut self) -> parking_lot::MappedRwLockReadGuard<'_, T> {
|
||||
let state = self.state.read();
|
||||
self.version = state.version;
|
||||
RwLockReadGuard::map(state, |state| &state.value)
|
||||
|
||||
Reference in New Issue
Block a user