changeset 51256: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 24d3298189d7
children e74dd6d73cb5
files rust/hg-core/src/revlog/mod.rs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;