# HG changeset patch # User Antoine cezar # Date 2020-09-28 12:29:05 # Node ID 412a5827ad02497b6fb0e91904239b8703c4ceeb # Parent d07e4656ff5a24ae821962a4504a76bbb6188d4b hg-core: use anonymous lifetime for `impl Chunk` (D8958#inline-15003 followup) Differential Revision: https://phab.mercurial-scm.org/D9103 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 @@ struct Chunk<'a> { 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