changeset 43272:00222775d59b

rust-refsharing: add missing lifetime parameter in ref_sharing Differential Revision: https://phab.mercurial-scm.org/D7110
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 15 Oct 2019 21:26:56 +0200
parents 99394e6c5d12
children 478d0b1bf0c5
files rust/hg-cpython/src/ref_sharing.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()
     }