diff -r 99394e6c5d12 -r 00222775d59b rust/hg-cpython/src/ref_sharing.rs --- a/rust/hg-cpython/src/ref_sharing.rs Fri Oct 11 13:39:57 2019 +0200 +++ b/rust/hg-cpython/src/ref_sharing.rs Tue Oct 15 21:26:56 2019 +0200 @@ -179,7 +179,7 @@ Self { py, owner, data } } - pub fn borrow(&self) -> Ref { + pub fn borrow(&self) -> Ref<'a, T> { self.data.borrow() }