Skip to content

Commit

Permalink
Another clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 18, 2025
1 parent 157f015 commit 717757e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/text/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 717757e

Please sign in to comment.