Skip to content

Commit 8b1ac45

Browse files
committed
Auto merge of #10141 - FoseFx:fosefx/9887, r=Jarcho
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 -->
2 parents 4334919 + 7a1a9c8 commit 8b1ac45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/empty_structs_with_brackets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl EarlyLintPass for EmptyStructsWithBrackets {
4545
span_after_ident,
4646
"remove the brackets",
4747
";",
48-
Applicability::MachineApplicable);
48+
Applicability::Unspecified);
4949
},
5050
);
5151
}

0 commit comments

Comments
 (0)