Another clippy fix

This commit is contained in:
Armin Ronacher 2025-01-19 00:32:29 +01:00
parent 157f01564d
commit 717757e156

View file

@ -76,7 +76,7 @@ impl<'bufs, 's, T: DiffableStr + ?Sized> MultiLookup<'bufs, 's, T> {
}
}
impl<'bufs, 's, T: DiffableStr + ?Sized> Index<usize> for MultiLookup<'bufs, 's, T> {
impl<T: DiffableStr + ?Sized> Index<usize> for MultiLookup<'_, '_, T> {
type Output = T;
fn index(&self, index: usize) -> &Self::Output {
@ -176,7 +176,7 @@ impl<'s, T: DiffableStr + ?Sized> From<Change<&'s T>> for InlineChange<'s, T> {
}
}
impl<'s, T: DiffableStr + ?Sized> fmt::Display for InlineChange<'s, T> {
impl<T: DiffableStr + ?Sized> 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) {