rust/hg-cpython/src/ref_sharing.rs
changeset 43272 00222775d59b
parent 43180 b3dda04e851b
child 43284 ce6dd1cee4c8
--- 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<T> {
+    pub fn borrow(&self) -> Ref<'a, T> {
         self.data.borrow()
     }