mirror of https://github.com/rust-lang/cargo
fix: Allow should not get translated to Note
This commit is contained in:
parent
14b46ecc62
commit
b89864cc3b
|
@ -123,7 +123,7 @@ impl Display for LintLevel {
|
|||
impl LintLevel {
|
||||
pub fn to_diagnostic_level(self) -> Level {
|
||||
match self {
|
||||
LintLevel::Allow => Level::Note,
|
||||
LintLevel::Allow => unreachable!("allow does not map to a diagnostic level"),
|
||||
LintLevel::Warn => Level::Warning,
|
||||
LintLevel::Deny => Level::Error,
|
||||
LintLevel::Forbid => Level::Error,
|
||||
|
|
Loading…
Reference in New Issue