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

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Wed Oct 16 17:43:55 EDT 2019


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

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



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


More information about the Mercurial-devel mailing list