rust-index: allow inlining `check_revision` across crates
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 23 Nov 2023 18:47:42 +0100
changeset 51256 83de5a06f6eb
parent 51255 24d3298189d7
child 51257 e74dd6d73cb5
rust-index: allow inlining `check_revision` across crates
rust/hg-core/src/revlog/mod.rs
--- 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;