Patchwork D9103: hg-core: use anonymous lifetime for `impl Chunk` (D8958#inline-15003 followup)

login
register
mail settings
Submitter phabricator
Date Sept. 28, 2020, 1:48 p.m.
Message ID <differential-rev-PHID-DREV-bhzf5qej7sc3fg6nioq6-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47318/
State Superseded
Headers show

Comments

phabricator - Sept. 28, 2020, 1:48 p.m.
acezar created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  rust/hg-core/src/revlog/patch.rs

CHANGE DETAILS




To: acezar, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hg-core/src/revlog/patch.rs b/rust/hg-core/src/revlog/patch.rs
--- a/rust/hg-core/src/revlog/patch.rs
+++ b/rust/hg-core/src/revlog/patch.rs
@@ -17,7 +17,7 @@ 
     data: &'a [u8],
 }
 
-impl<'a> Chunk<'a> {
+impl Chunk<'_> {
     /// Adjusted start of the chunk to replace.
     ///
     /// Offset allow to take into account the growth/shrinkage of data