Skip to content

Commit

Permalink
lint code with rust 1.83.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedberg committed Dec 17, 2024
1 parent f574a81 commit adbe96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning/src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ mod ext_impl {
fn held_by_thread(&self) -> LockHeldState { LockHeldState::Unsupported }
type ExclLock = MutexGuard<'a, T>;
#[inline]
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<T> { self.lock().unwrap() }
fn unsafe_well_ordered_double_lock_self(&'a self) -> MutexGuard<'a, T> { self.lock().unwrap() }
}
impl<'a, T: 'a> LockTestExt<'a> for RwLock<T> {
#[inline]
fn held_by_thread(&self) -> LockHeldState { LockHeldState::Unsupported }
type ExclLock = RwLockWriteGuard<'a, T>;
#[inline]
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<T> { self.write().unwrap() }
fn unsafe_well_ordered_double_lock_self(&'a self) -> RwLockWriteGuard<'a, T> { self.write().unwrap() }
}
}

Expand Down

0 comments on commit adbe96a

Please sign in to comment.