Make clippy happier (#72)

This commit is contained in:
Armin Ronacher 2025-01-19 00:31:21 +01:00 committed by GitHub
parent 7e15c44de1
commit 157f01564d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 13 additions and 17 deletions

View file

@ -36,7 +36,7 @@ impl DiffableStrRef for String {
}
}
impl<'a, T: DiffableStr + ?Sized> DiffableStrRef for Cow<'a, T> {
impl<T: DiffableStr + ?Sized> DiffableStrRef for Cow<'_, T> {
type Output = T;
fn as_diffable_str(&self) -> &T {

View file

@ -543,7 +543,7 @@ impl<'old, 'new, 'bufs, T: DiffableStr + ?Sized + 'old + 'new> TextDiff<'old, 'n
pub fn iter_inline_changes<'slf>(
&'slf self,
op: &DiffOp,
) -> impl Iterator<Item = InlineChange<'slf, T>> + '_
) -> impl Iterator<Item = InlineChange<'slf, T>> + 'slf
where
'slf: 'old + 'new,
{
@ -558,7 +558,7 @@ impl<'old, 'new, 'bufs, T: DiffableStr + ?Sized + 'old + 'new> TextDiff<'old, 'n
&'slf self,
op: &DiffOp,
deadline: Option<Instant>,
) -> impl Iterator<Item = InlineChange<'slf, T>> + '_
) -> impl Iterator<Item = InlineChange<'slf, T>> + 'slf
where
'slf: 'old + 'new,
{