We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f1dfcb commit 6d68c59Copy full SHA for 6d68c59
1 file changed
crates/ruff_linter/src/suppression.rs
@@ -228,7 +228,7 @@ impl Suppressions {
228
grouped_diagnostic: &Option<(TextRange, SuppressionDiagnostic)>|
229
-> bool {
230
if let Some((group_key, group)) = grouped_diagnostic
231
- && (key.is_none() || key.is_some_and(|key| key != *group_key))
+ && key.is_none_or(|key| key != *group_key)
232
{
233
if group.any_invalid() {
234
Suppressions::report_suppression_codes(
0 commit comments