Skip to content

Commit b0a3ac2

Browse files
committed
Explicitly specify elided lifetime for LockTestExt
1 parent 0061fc6 commit b0a3ac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/sync/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ mod ext_impl {
4646
}
4747
type ExclLock = MutexGuard<'a, T>;
4848
#[inline]
49-
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<T> {
49+
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<'a, T> {
5050
self.lock().unwrap()
5151
}
5252
}
@@ -57,7 +57,7 @@ mod ext_impl {
5757
}
5858
type ExclLock = RwLockWriteGuard<'a, T>;
5959
#[inline]
60-
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<T> {
60+
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<'a, T> {
6161
self.write().unwrap()
6262
}
6363
}

0 commit comments

Comments
 (0)