Remove "blanket" from RUF100 README message (#2844)

This commit is contained in:
Ville Skyttä 2023-02-13 16:43:35 +02:00 committed by GitHub
parent 32520ff07f
commit d1cf0ee52b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,6 @@ impl AlwaysAutofixableViolation for UnusedNOQA {
fn message(&self) -> String {
let UnusedNOQA { codes } = self;
match codes {
None => format!("Unused blanket `noqa` directive"),
Some(codes) => {
let mut codes_by_reason = vec![];
if !codes.unmatched.is_empty() {
@ -60,6 +59,7 @@ impl AlwaysAutofixableViolation for UnusedNOQA {
format!("Unused `noqa` directive ({})", codes_by_reason.join("; "))
}
}
None => format!("Unused blanket `noqa` directive"),
}
}