fix: Allow should not get translated to Note

This commit is contained in:
Scott Schafer 2024-04-20 16:31:04 -06:00
parent 14b46ecc62
commit b89864cc3b
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

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