1
Fork 0

Make ForceWarn a lint level.

This commit is contained in:
Camille GILLOT 2021-06-04 23:21:43 +02:00
parent 6830052c7b
commit e42271db0d
13 changed files with 48 additions and 76 deletions

View file

@ -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",
}