# HG changeset patch # User Raphaël Gomès # Date 2023-11-23 17:47:42 # Node ID 83de5a06f6eb6077851f7044de4e38625ff58d61 # Parent 24d3298189d7ad8c89903a6b6adfd705d05607da rust-index: allow inlining `check_revision` across crates diff --git a/rust/hg-core/src/revlog/mod.rs b/rust/hg-core/src/revlog/mod.rs --- a/rust/hg-core/src/revlog/mod.rs +++ b/rust/hg-core/src/revlog/mod.rs @@ -151,6 +151,7 @@ pub trait RevlogIndex { /// index. /// /// [`NULL_REVISION`] is considered to be valid. + #[inline(always)] fn check_revision(&self, rev: UncheckedRevision) -> Option { let rev = rev.0;