We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b151c56 commit f69b19fCopy full SHA for f69b19f
lightning/src/sync/debug_sync.rs
@@ -149,7 +149,7 @@ impl LockMetadata {
149
LOCKS_INIT.call_once(|| unsafe {
150
LOCKS = Some(StdMutex::new(new_hash_map()));
151
});
152
- let mut locks = unsafe { LOCKS.as_ref() }.unwrap().lock().unwrap();
+ let mut locks = unsafe { LOCKS.as_ref() }.unwrap().lock();
153
match locks.entry(lock_constr_location) {
154
hash_map::Entry::Occupied(e) => {
155
assert_eq!(lock_constr_colno,
0 commit comments