diff rust/hg-core/src/revlog/mod.rs @ 51253:83de5a06f6eb

rust-index: allow inlining `check_revision` across crates
author Rapha?l Gom?s <rgomes@octobus.net>
date Thu, 23 Nov 2023 18:47:42 +0100
parents 7434747343ab
children c3f2a9b55f59 b08c5fbe0e70
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/mod.rs	Thu Nov 23 03:41:58 2023 +0100
+++ b/rust/hg-core/src/revlog/mod.rs	Thu Nov 23 18:47:42 2023 +0100
@@ -151,6 +151,7 @@
     /// index.
     ///
     /// [`NULL_REVISION`] is considered to be valid.
+    #[inline(always)]
     fn check_revision(&self, rev: UncheckedRevision) -> Option<Revision> {
         let rev = rev.0;