Skip to content

Commit bed5689

Browse files
committed
empty_structs_with_brackets: not anymore
1 parent a85e480 commit bed5689

4 files changed

+3
-29
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
}

tests/ui/empty_structs_with_brackets.fixed

Lines changed: 0 additions & 25 deletions
This file was deleted.

tests/ui/empty_structs_with_brackets.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// run-rustfix
21
#![warn(clippy::empty_structs_with_brackets)]
32
#![allow(dead_code)]
43

tests/ui/empty_structs_with_brackets.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: found empty brackets on struct declaration
2-
--> $DIR/empty_structs_with_brackets.rs:5:25
2+
--> $DIR/empty_structs_with_brackets.rs:4:25
33
|
44
LL | pub struct MyEmptyStruct {} // should trigger lint
55
| ^^^
@@ -8,7 +8,7 @@ LL | pub struct MyEmptyStruct {} // should trigger lint
88
= help: remove the brackets
99

1010
error: found empty brackets on struct declaration
11-
--> $DIR/empty_structs_with_brackets.rs:6:26
11+
--> $DIR/empty_structs_with_brackets.rs:5:26
1212
|
1313
LL | struct MyEmptyTupleStruct(); // should trigger lint
1414
| ^^^

0 commit comments

Comments
 (0)