mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:16 +00:00
Remove functor from autofix title (#4245)
This commit is contained in:
parent
8969ad5879
commit
a2b8487ae3
61 changed files with 234 additions and 305 deletions
|
@ -59,7 +59,7 @@ pub fn violation(violation: &ItemStruct) -> Result<TokenStream> {
|
|||
|
||||
Self {
|
||||
body: Violation::message(&value),
|
||||
suggestion: value.autofix_title_formatter().map(|f| f(&value)),
|
||||
suggestion: Violation::autofix_title(&value),
|
||||
name: stringify!(#ident).to_string(),
|
||||
}
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ pub fn violation(violation: &ItemStruct) -> Result<TokenStream> {
|
|||
|
||||
Self {
|
||||
body: Violation::message(&value),
|
||||
suggestion: value.autofix_title_formatter().map(|f| f(&value)),
|
||||
suggestion: Violation::autofix_title(&value),
|
||||
name: stringify!(#ident).to_string(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue