Rename DiagnosticKind#commit to DiagnosticKind#suggestion (#3397)

This commit is contained in:
Charlie Marsh 2023-03-08 13:06:19 -05:00 committed by GitHub
parent ffad0bcdaa
commit dfe1cad928
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
688 changed files with 3591 additions and 3585 deletions

View file

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