Merge Availability and AutofixKind (#3629)

This commit is contained in:
Jonathan Plasse 2023-03-20 17:45:33 +01:00 committed by GitHub
parent 7c0f17279c
commit fd39ec4bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 70 additions and 72 deletions

View file

@ -58,7 +58,7 @@ pub fn register_rules(input: &Input) -> proc_macro2::TokenStream {
}
/// Returns the autofix status of this rule.
pub const fn autofixable(&self) -> Option<ruff_diagnostics::AutofixKind> {
pub const fn autofixable(&self) -> ruff_diagnostics::AutofixKind {
match self { #rule_autofixable_match_arms }
}
}