changeset 45592:a886ffd2ffc6

hg-core: minor code style change (D8958#inline-14986 followup) Differential Revision: https://phab.mercurial-scm.org/D9096
author Antoine cezar<acezar@chwitlabs.fr>
date Mon, 28 Sep 2020 13:53:11 +0200
parents f38adf8b0711
children da30e4b553c3
files rust/hg-core/src/revlog/index.rs
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/index.rs	Mon Sep 28 13:51:16 2020 +0200
+++ b/rust/hg-core/src/revlog/index.rs	Mon Sep 28 13:53:11 2020 +0200
@@ -100,10 +100,7 @@
 
         // Override the offset of the first revision as its bytes are used
         // for the index's metadata (saving space because it is always 0)
-        let offset_override = match rev {
-            0 => Some(0),
-            _ => None,
-        };
+        let offset_override = if rev == 0 { Some(0) } else { None };
 
         Some(IndexEntry {
             bytes,