From 2241549583211d3c57df3f71e7fe6abcab0244e1 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Wed, 11 Sep 2024 13:57:15 +0100 Subject: [PATCH] no unwrap --- crates/storage/libmdbx-rs/src/cursor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/storage/libmdbx-rs/src/cursor.rs b/crates/storage/libmdbx-rs/src/cursor.rs index dde32730f6fb..d007cc03e490 100644 --- a/crates/storage/libmdbx-rs/src/cursor.rs +++ b/crates/storage/libmdbx-rs/src/cursor.rs @@ -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) }); } }