[Updated] D9096: hg-core: minor code style change (D8958#inline-14986 followup)
Phabricator
phabricator at mercurial-scm.org
Tue Sep 29 17:52:00 UTC 2020
Closed by commit rHGa886ffd2ffc6: hg-core: minor code style change (D8958#inline-14986 followup) (authored by Antoine cezar <acezar at chwitlabs.fr>).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9096?vs=22907&id=22926
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9096/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9096
AFFECTED FILES
rust/hg-core/src/revlog/index.rs
CHANGE DETAILS
diff --git a/rust/hg-core/src/revlog/index.rs b/rust/hg-core/src/revlog/index.rs
--- a/rust/hg-core/src/revlog/index.rs
+++ b/rust/hg-core/src/revlog/index.rs
@@ -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,
To: acezar, #hg-reviewers, Alphare
Cc: martinvonz, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200929/fd7bc519/attachment-0002.html>
More information about the Mercurial-patches
mailing list