We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f130ee commit cd1b7e7Copy full SHA for cd1b7e7
lightning/src/sync/nostd_sync.rs
@@ -61,7 +61,7 @@ impl<'a, T: 'a> LockTestExt<'a> for Mutex<T> {
61
}
62
type ExclLock = MutexGuard<'a, T>;
63
#[inline]
64
- fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<T> {
+ fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<'a, T> {
65
self.lock().unwrap()
66
67
@@ -132,7 +132,7 @@ impl<'a, T: 'a> LockTestExt<'a> for RwLock<T> {
132
133
type ExclLock = RwLockWriteGuard<'a, T>;
134
135
- fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<T> {
+ fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<'a, T> {
136
self.write().unwrap()
137
138
0 commit comments