# HG changeset patch # User Raphaël Gomès # Date 2023-12-14 10:52:05 # Node ID 8b89f7cc953a6ae56a0af3a470e1aa016bcb20a1 # Parent e74dd6d73cb591fafc5ef325c9e6dfa03691c395 rust-index: allow inlining VCSGraph parents across crates diff --git a/rust/hg-cpython/src/revlog.rs b/rust/hg-cpython/src/revlog.rs --- a/rust/hg-cpython/src/revlog.rs +++ b/rust/hg-cpython/src/revlog.rs @@ -53,12 +53,14 @@ impl Clone for PySharedIndex { } 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,