mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
Auto merge of #10141 - FoseFx:fosefx/9887, r=Jarcho
fix empty_structs_with_brackets suggestion errors fixes #9887 I refer to [my comment](https://github.com/rust-lang/rust-clippy/issues/9887#issuecomment-1368495395) 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](https://github.com/rust-lang/rust-clippy/pull/10141) <!-- changelog_checked -->
This commit is contained in:
commit
8b1ac4539d
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl EarlyLintPass for EmptyStructsWithBrackets {
|
|||
span_after_ident,
|
||||
"remove the brackets",
|
||||
";",
|
||||
Applicability::MachineApplicable);
|
||||
Applicability::Unspecified);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue