Skip to content

Commit 4fbaffd

Browse files
committed
f nostd
1 parent b6f3b76 commit 4fbaffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/sync/nostd_sync.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl<T> Mutex<T> {
6262
}
6363
}
6464

65-
impl<'a, T> LockTestExt<'a> for Mutex<T> {
65+
impl<'a, T: 'a> LockTestExt<'a> for Mutex<T> {
6666
#[inline]
6767
fn held_by_thread(&self) -> LockHeldState {
6868
if self.lock().is_err() { return LockHeldState::HeldByThread; }
@@ -128,7 +128,7 @@ impl<T> RwLock<T> {
128128
}
129129
}
130130

131-
impl<'a, T> LockTestExt<'a> for RwLock<T> {
131+
impl<'a, T: 'a> LockTestExt<'a> for RwLock<T> {
132132
#[inline]
133133
fn held_by_thread(&self) -> LockHeldState {
134134
if self.write().is_err() { return LockHeldState::HeldByThread; }

0 commit comments

Comments
 (0)