Skip to content

Commit

Permalink
no unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Sep 11, 2024
1 parent c6ff017 commit 2241549
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/storage/libmdbx-rs/src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ where
fn drop(&mut self) {
// To be able to close a cursor of a timed out transaction, we need to renew it first.
// Hence the usage of `txn_execute_renew_on_timeout` here.
self.txn
.txn_execute_renew_on_timeout(|_| unsafe { ffi::mdbx_cursor_close(self.cursor) })
.unwrap();
let _ = self
.txn
.txn_execute_renew_on_timeout(|_| unsafe { ffi::mdbx_cursor_close(self.cursor) });
}
}

Expand Down

0 comments on commit 2241549

Please sign in to comment.