More accurate span for unnecessary parens suggestion
This commit is contained in:
parent
ed084a9343
commit
075c599188
4 changed files with 12 additions and 30 deletions
|
@ -1275,12 +1275,10 @@ pub(crate) struct ParenthesesInForHead {
|
|||
#[derive(Subdiagnostic)]
|
||||
#[multipart_suggestion(parse_suggestion, applicability = "machine-applicable")]
|
||||
pub(crate) struct ParenthesesInForHeadSugg {
|
||||
#[suggestion_part(code = "{left_snippet}")]
|
||||
#[suggestion_part(code = " ")]
|
||||
pub left: Span,
|
||||
pub left_snippet: String,
|
||||
#[suggestion_part(code = "{right_snippet}")]
|
||||
#[suggestion_part(code = " ")]
|
||||
pub right: Span,
|
||||
pub right_snippet: String,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue