D7110: rust-status: add missing lifetime parameter in ref_sharing
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Tue Oct 15 19:12:08 UTC 2019
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
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
Cc: durin42, kevincox, mercurial-devel
More information about the Mercurial-devel
mailing list