rust-index: allow inlining VCSGraph parents across crates
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 14 Dec 2023 11:52:05 +0100
changeset 51258 8b89f7cc953a
parent 51257 e74dd6d73cb5
child 51259 ed6683d4cb29
rust-index: allow inlining VCSGraph parents across crates
rust/hg-cpython/src/revlog.rs
--- 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,