Skip to content

Commit a37e57f

Browse files
committed
f expect instead of unwrap
1 parent 6c31644 commit a37e57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ impl TestStore {
915915
let mut persisted_lock = self.persisted_bytes.lock().unwrap();
916916
let mut writes_lock = self.pending_async_writes.lock().unwrap();
917917

918-
let pending_writes = writes_lock.get_mut(&key).unwrap();
918+
let pending_writes = writes_lock.get_mut(&key).expect("No pending writes for given key");
919919
pending_writes.retain(|(id, res, data)| {
920920
if *id <= write_id {
921921
let namespace = persisted_lock.entry(prefix.clone()).or_insert(new_hash_map());

0 commit comments

Comments
 (0)