changeset 51279:8b89f7cc953a

rust-index: allow inlining VCSGraph parents across crates
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 14 Dec 2023 11:52:05 +0100
parents e74dd6d73cb5
children ed6683d4cb29
files rust/hg-cpython/src/revlog.rs
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-cpython/src/revlog.rs	Thu Nov 23 18:48:07 2023 +0100
+++ b/rust/hg-cpython/src/revlog.rs	Thu Dec 14 11:52:05 2023 +0100
@@ -53,12 +53,14 @@
 }
 
 impl Graph for PySharedIndex {
+    #[inline(always)]
     fn parents(&self, rev: Revision) -> Result<[Revision; 2], hg::GraphError> {
         self.inner.parents(rev)
     }
 }
 
 impl VCSGraph for PySharedIndex {
+    #[inline(always)]
     fn parents(
         &self,
         rev: BaseRevision,