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

login
register
mail settings
Submitter phabricator
Date Oct. 16, 2019, 9:43 p.m.
Message ID <4be928cf0a98e4e13f618af94ad4b8b5@localhost.localdomain>
Download mbox | patch
Permalink /patch/42433/
State Not Applicable
Headers show

Comments

phabricator - Oct. 16, 2019, 9:43 p.m.
Closed by commit rHGb902066d9b86: rust-refsharing: add missing lifetime parameter in ref_sharing (authored by Alphare).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7110?vs=17182&id=17268

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7110/new/

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

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

CHANGE DETAILS




To: Alphare, #hg-reviewers, martinvonz
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()
     }