mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +00:00
Rename DiagnosticKind#commit
to DiagnosticKind#suggestion
(#3397)
This commit is contained in:
parent
ffad0bcdaa
commit
dfe1cad928
688 changed files with 3591 additions and 3585 deletions
|
@ -54,7 +54,7 @@ pub fn violation(violation: &ItemStruct) -> Result<TokenStream> {
|
|||
Self {
|
||||
body: Violation::message(&value),
|
||||
fixable: value.autofix_title_formatter().is_some(),
|
||||
commit: value.autofix_title_formatter().map(|f| f(&value)),
|
||||
suggestion: value.autofix_title_formatter().map(|f| f(&value)),
|
||||
name: stringify!(#ident).to_string(),
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ pub fn violation(violation: &ItemStruct) -> Result<TokenStream> {
|
|||
Self {
|
||||
body: Violation::message(&value),
|
||||
fixable: value.autofix_title_formatter().is_some(),
|
||||
commit: value.autofix_title_formatter().map(|f| f(&value)),
|
||||
suggestion: value.autofix_title_formatter().map(|f| f(&value)),
|
||||
name: stringify!(#ident).to_string(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue