Make ForceWarn a lint level.
This commit is contained in:
parent
6830052c7b
commit
e42271db0d
13 changed files with 48 additions and 76 deletions
|
@ -51,6 +51,7 @@ pub enum Applicability {
|
|||
pub enum Level {
|
||||
Allow,
|
||||
Warn,
|
||||
ForceWarn,
|
||||
Deny,
|
||||
Forbid,
|
||||
}
|
||||
|
@ -63,6 +64,7 @@ impl Level {
|
|||
match self {
|
||||
Level::Allow => "allow",
|
||||
Level::Warn => "warn",
|
||||
Level::ForceWarn => "force-warns",
|
||||
Level::Deny => "deny",
|
||||
Level::Forbid => "forbid",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue