Skip to content

Commit dcc895f

Browse files
committed
Silence "elided lifetime has a name" warnings in no-std locking
1 parent 15f00c1 commit dcc895f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/sync/nostd_sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<'a, T: 'a> LockTestExt<'a> for Mutex<T> {
6161
}
6262
type ExclLock = MutexGuard<'a, T>;
6363
#[inline]
64-
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<T> {
64+
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<'a, T> {
6565
self.lock().unwrap()
6666
}
6767
}
@@ -132,7 +132,7 @@ impl<'a, T: 'a> LockTestExt<'a> for RwLock<T> {
132132
}
133133
type ExclLock = RwLockWriteGuard<'a, T>;
134134
#[inline]
135-
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<T> {
135+
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<'a, T> {
136136
self.write().unwrap()
137137
}
138138
}

0 commit comments

Comments
 (0)