diff rust/hg-core/src/revlog/inner_revlog.rs @ 52327:f90796d33aa0

rust: fix clippy lints These were highlighted by the latest version of clippy (1.82.0).
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 29 Oct 2024 11:35:01 +0100
parents a3fa37bdb7ec
children 645d247d4c75
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/inner_revlog.rs	Tue Oct 29 11:00:04 2024 +0100
+++ b/rust/hg-core/src/revlog/inner_revlog.rs	Tue Oct 29 11:35:01 2024 +0100
@@ -802,9 +802,8 @@
             return Ok(func());
         }
         self.enter_writing_context(data_end, transaction)
-            .map_err(|e| {
+            .inspect_err(|_| {
                 self.exit_writing_context();
-                e
             })?;
         let res = func();
         self.exit_writing_context();