diff --git a/src/text/inline.rs b/src/text/inline.rs index e036c38..f644be7 100644 --- a/src/text/inline.rs +++ b/src/text/inline.rs @@ -76,7 +76,7 @@ impl<'bufs, 's, T: DiffableStr + ?Sized> MultiLookup<'bufs, 's, T> { } } -impl<'bufs, 's, T: DiffableStr + ?Sized> Index for MultiLookup<'bufs, 's, T> { +impl Index for MultiLookup<'_, '_, T> { type Output = T; fn index(&self, index: usize) -> &Self::Output { @@ -176,7 +176,7 @@ impl<'s, T: DiffableStr + ?Sized> From> for InlineChange<'s, T> { } } -impl<'s, T: DiffableStr + ?Sized> fmt::Display for InlineChange<'s, T> { +impl fmt::Display for InlineChange<'_, T> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { for (emphasized, value) in self.iter_strings_lossy() { let marker = match (emphasized, self.tag) {