mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +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
@ -45,7 +45,7 @@ impl EarlyLintPass for EmptyStructsWithBrackets {
|
||||
span_after_ident,
|
||||
"remove the brackets",
|
||||
";",
|
||||
Applicability::MachineApplicable);
|
||||
Applicability::Unspecified);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user