Another clippy fix
This commit is contained in:
parent
157f01564d
commit
717757e156
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
type Output = T;
|
||||||
|
|
||||||
fn index(&self, index: usize) -> &Self::Output {
|
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 {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
for (emphasized, value) in self.iter_strings_lossy() {
|
for (emphasized, value) in self.iter_strings_lossy() {
|
||||||
let marker = match (emphasized, self.tag) {
|
let marker = match (emphasized, self.tag) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue