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
@ -45,7 +45,7 @@ fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) {
|
||||
span_after_ident,
|
||||
"remove the brackets",
|
||||
";",
|
||||
Applicability::MachineApplicable);
|
||||
Applicability::Unspecified);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user