Remove functor from autofix title (#4245)

This commit is contained in:
Micha Reiser 2023-05-10 09:21:15 +02:00 committed by GitHub
parent 8969ad5879
commit a2b8487ae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 234 additions and 305 deletions

View file

@ -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(),
}
}