# HG changeset patch
# User Raphaël Gomès <rgomes@octobus.net>
# Date 1571167616 -7200
# Node ID 00222775d59bcd0bb21a0c45e36f515b06696dd7
# Parent  99394e6c5d121c0de6803de79107408052a11680
rust-refsharing: add missing lifetime parameter in ref_sharing

Differential Revision: https://phab.mercurial-scm.org/D7110

diff --git a/rust/hg-cpython/src/ref_sharing.rs b/rust/hg-cpython/src/ref_sharing.rs
--- a/rust/hg-cpython/src/ref_sharing.rs
+++ b/rust/hg-cpython/src/ref_sharing.rs
@@ -179,7 +179,7 @@
         Self { py, owner, data }
     }
 
-    pub fn borrow(&self) -> Ref<T> {
+    pub fn borrow(&self) -> Ref<'a, T> {
         self.data.borrow()
     }