hg-core: use anonymous lifetime for `impl Chunk` (D8958#inline-15003 followup)
authorAntoine cezar<acezar@chwitlabs.fr>
Mon, 28 Sep 2020 14:29:05 +0200
changeset 45598 412a5827ad02
parent 45597 d07e4656ff5a
child 45599 cee7a8e37e9c
hg-core: use anonymous lifetime for `impl Chunk` (D8958#inline-15003 followup) Differential Revision: https://phab.mercurial-scm.org/D9103
rust/hg-core/src/revlog/patch.rs
--- a/rust/hg-core/src/revlog/patch.rs	Mon Sep 28 14:27:04 2020 +0200
+++ b/rust/hg-core/src/revlog/patch.rs	Mon Sep 28 14:29:05 2020 +0200
@@ -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