Make the "extra if in let...else block" hint a suggestion
This commit is contained in:
parent
f55b0022db
commit
e905b93706
4 changed files with 8 additions and 8 deletions
|
@ -351,7 +351,7 @@ pub(crate) enum IfExpressionMissingThenBlockSub {
|
|||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[help(parse_extra_if_in_let_else)]
|
||||
#[suggestion(parse_extra_if_in_let_else, applicability = "maybe-incorrect", code = "")]
|
||||
pub(crate) struct IfExpressionLetSomeSub {
|
||||
#[primary_span]
|
||||
pub if_span: Span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue