# HG changeset patch # User Raphaël Gomès # Date 1702551125 -3600 # Node ID 8b89f7cc953a6ae56a0af3a470e1aa016bcb20a1 # Parent e74dd6d73cb591fafc5ef325c9e6dfa03691c395 rust-index: allow inlining VCSGraph parents across crates diff -r e74dd6d73cb5 -r 8b89f7cc953a 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,