Skip to content

Commit

Permalink
Run cargo dev fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nahuakang committed Jan 4, 2021
1 parent bc97f5d commit a8d47b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/empty_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare_clippy_lint! {
/// if the `never_type` is enabled.
///
/// **Why is this bad?** If you want to introduce a type which
/// can't be instantiated, you should use `!` (the primitive type never),
/// can't be instantiated, you should use `!` (the primitive type "never"),
/// or a wrapper around it, because `!` has more extensive
/// compiler support (type inference, etc...) and wrappers
/// around it are the conventional way to define an uninhabited type.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/empty_enum_without_never_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
// `never_type` is not enabled; this test has no stderr file
enum Empty {}

fn main() {}
fn main() {}

0 comments on commit a8d47b4

Please sign in to comment.