We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6f3b76 commit 4fbaffdCopy full SHA for 4fbaffd
lightning/src/sync/nostd_sync.rs
@@ -62,7 +62,7 @@ impl<T> Mutex<T> {
62
}
63
64
65
-impl<'a, T> LockTestExt<'a> for Mutex<T> {
+impl<'a, T: 'a> LockTestExt<'a> for Mutex<T> {
66
#[inline]
67
fn held_by_thread(&self) -> LockHeldState {
68
if self.lock().is_err() { return LockHeldState::HeldByThread; }
@@ -128,7 +128,7 @@ impl<T> RwLock<T> {
128
129
130
131
-impl<'a, T> LockTestExt<'a> for RwLock<T> {
+impl<'a, T: 'a> LockTestExt<'a> for RwLock<T> {
132
133
134
if self.write().is_err() { return LockHeldState::HeldByThread; }
0 commit comments