Suggest to use a wrapper in the wiki for the empty_enum lint
This commit is contained in:
parent
1193f4fb68
commit
c922eb9db5
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ use utils::span_lint_and_then;
|
|||
|
||||
/// **What it does:** Checks for `enum`s with no variants.
|
||||
///
|
||||
/// **Why is this bad?** Enum's with no variants should be replaced with `!`.
|
||||
/// **Why is this bad?** Enum's with no variants should be replaced with `!`, the uninhabited type,
|
||||
/// or a wrapper around it.
|
||||
///
|
||||
/// **Known problems:** None.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue