Patchwork D7110: rust-status: add missing lifetime parameter in ref_sharing

login
register
mail settings
Submitter phabricator
Date Oct. 15, 2019, 7:12 p.m.
Message ID <differential-rev-PHID-DREV-grrtsflhbmdhsef2rptu-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42365/
State Superseded
Headers show

Comments

phabricator - Oct. 15, 2019, 7:12 p.m.
Alphare created this revision.
Herald added subscribers: mercurial-devel, kevincox, durin42.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7110

AFFECTED FILES
  rust/hg-cpython/src/ref_sharing.rs

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: durin42, kevincox, mercurial-devel

Patch

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()
     }