From patchwork Mon Sep 28 13:48:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D9103: hg-core: use anonymous lifetime for `impl Chunk` (D8958#inline-15003 followup) From: phabricator X-Patchwork-Id: 47318 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 28 Sep 2020 13:48:51 +0000 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 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