Skip to content

Commit b89864c

Browse files
committed
fix: Allow should not get translated to Note
1 parent 14b46ec commit b89864c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl Display for LintLevel {
123123
impl LintLevel {
124124
pub fn to_diagnostic_level(self) -> Level {
125125
match self {
126-
LintLevel::Allow => Level::Note,
126+
LintLevel::Allow => unreachable!("allow does not map to a diagnostic level"),
127127
LintLevel::Warn => Level::Warning,
128128
LintLevel::Deny => Level::Error,
129129
LintLevel::Forbid => Level::Error,

0 commit comments

Comments
 (0)