##// END OF EJS Templates
rust-index: allow inlining VCSGraph parents across crates
Raphaël Gomès -
r52151:8b89f7cc default
parent child Browse files
Show More
@@ -53,12 +53,14 b' impl Clone for PySharedIndex {'
53 }
53 }
54
54
55 impl Graph for PySharedIndex {
55 impl Graph for PySharedIndex {
56 #[inline(always)]
56 fn parents(&self, rev: Revision) -> Result<[Revision; 2], hg::GraphError> {
57 fn parents(&self, rev: Revision) -> Result<[Revision; 2], hg::GraphError> {
57 self.inner.parents(rev)
58 self.inner.parents(rev)
58 }
59 }
59 }
60 }
60
61
61 impl VCSGraph for PySharedIndex {
62 impl VCSGraph for PySharedIndex {
63 #[inline(always)]
62 fn parents(
64 fn parents(
63 &self,
65 &self,
64 rev: BaseRevision,
66 rev: BaseRevision,
General Comments 0
You need to be logged in to leave comments. Login now