mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00
Use #[expect(lint)]
over #[allow(lint)]
where possible (#17822)
This commit is contained in:
parent
8535af8516
commit
fa628018b2
148 changed files with 221 additions and 268 deletions
|
@ -155,7 +155,7 @@ where
|
|||
}
|
||||
|
||||
// The type already has an `iter` method thanks to `Deref`.
|
||||
#[allow(clippy::into_iter_without_iter)]
|
||||
#[expect(clippy::into_iter_without_iter)]
|
||||
impl<'a, T> IntoIterator for &'a RangedValue<T>
|
||||
where
|
||||
&'a T: IntoIterator,
|
||||
|
@ -168,7 +168,7 @@ where
|
|||
}
|
||||
|
||||
// The type already has a `into_iter_mut` method thanks to `DerefMut`.
|
||||
#[allow(clippy::into_iter_without_iter)]
|
||||
#[expect(clippy::into_iter_without_iter)]
|
||||
impl<'a, T> IntoIterator for &'a mut RangedValue<T>
|
||||
where
|
||||
&'a mut T: IntoIterator,
|
||||
|
|
|
@ -186,7 +186,7 @@ impl Debouncer {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::unused_self, clippy::needless_pass_by_value)]
|
||||
#[expect(clippy::unused_self, clippy::needless_pass_by_value)]
|
||||
fn add_error(&mut self, error: notify::Error) {
|
||||
// Micha: I skimmed through some of notify's source code and it seems the most common errors
|
||||
// are IO errors. All other errors should really only happen when adding or removing a watched folders.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue