Skip to content

Commit

Permalink
Auto merge of #10141 - FoseFx:fosefx/9887, r=Jarcho
Browse files Browse the repository at this point in the history
fix empty_structs_with_brackets suggestion errors

fixes #9887

I refer to [my comment](#9887 (comment)) to explain this PR.

---

changelog: Sugg: [`empty_structs_with_brackets`]: The suggestion is no longer machine applicable, to avoid errors when accessing struct fields
[#10141](#10141)
<!-- changelog_checked -->
  • Loading branch information
bors committed Jan 3, 2023
2 parents 4334919 + 7a1a9c8 commit 8b1ac45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/empty_structs_with_brackets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl EarlyLintPass for EmptyStructsWithBrackets {
span_after_ident,
"remove the brackets",
";",
Applicability::MachineApplicable);
Applicability::Unspecified);
},
);
}
Expand Down

0 comments on commit 8b1ac45

Please sign in to comment.