Skip to content

Commit adbe96a

Browse files
committed
lint code with rust 1.83.0
1 parent f574a81 commit adbe96a

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
@@ -41,14 +41,14 @@ mod ext_impl {
4141
fn held_by_thread(&self) -> LockHeldState { LockHeldState::Unsupported }
4242
type ExclLock = MutexGuard<'a, T>;
4343
#[inline]
44-
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<T> { self.lock().unwrap() }
44+
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<'a, T> { self.lock().unwrap() }
4545
}
4646
impl<'a, T: 'a> LockTestExt<'a> for RwLock<T> {
4747
#[inline]
4848
fn held_by_thread(&self) -> LockHeldState { LockHeldState::Unsupported }
4949
type ExclLock = RwLockWriteGuard<'a, T>;
5050
#[inline]
51-
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<T> { self.write().unwrap() }
51+
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<'a, T> { self.write().unwrap() }
5252
}
5353
}
5454

0 commit comments

Comments
 (0)