Skip to content

Commit a8d47b4

Browse files
committed
Run cargo dev fmt
1 parent bc97f5d commit a8d47b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/empty_enum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare_clippy_lint! {
1313
/// if the `never_type` is enabled.
1414
///
1515
/// **Why is this bad?** If you want to introduce a type which
16-
/// can't be instantiated, you should use `!` (the primitive type never),
16+
/// can't be instantiated, you should use `!` (the primitive type "never"),
1717
/// or a wrapper around it, because `!` has more extensive
1818
/// compiler support (type inference, etc...) and wrappers
1919
/// around it are the conventional way to define an uninhabited type.

tests/ui/empty_enum_without_never_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// `never_type` is not enabled; this test has no stderr file
55
enum Empty {}
66

7-
fn main() {}
7+
fn main() {}

0 commit comments

Comments
 (0)