mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Merge Availability and AutofixKind (#3629)
This commit is contained in:
parent
7c0f17279c
commit
fd39ec4bdd
26 changed files with 70 additions and 72 deletions
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue