# HG changeset patch # User Raphaël Gomès # Date 1700761687 -3600 # Node ID e74dd6d73cb591fafc5ef325c9e6dfa03691c395 # Parent 83de5a06f6eb6077851f7044de4e38625ff58d61 rust-index: allow inlining `parents` across crates diff -r 83de5a06f6eb -r e74dd6d73cb5 rust/hg-core/src/revlog/index.rs --- a/rust/hg-core/src/revlog/index.rs Thu Nov 23 18:47:42 2023 +0100 +++ b/rust/hg-core/src/revlog/index.rs Thu Nov 23 18:48:07 2023 +0100 @@ -280,6 +280,7 @@ } impl Graph for Index { + #[inline(always)] fn parents(&self, rev: Revision) -> Result<[Revision; 2], GraphError> { let err = || GraphError::ParentOutOfRange(rev); match self.get_entry(rev) {