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 08b8275 commit 6a810d0Copy full SHA for 6a810d0
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