1
Fork 0

Add OnceHelp lint level (same as OnceNote, except for help)

This commit is contained in:
Urgau 2023-07-25 19:37:45 +02:00
parent bf1e3f31f9
commit eba5b44729
3 changed files with 14 additions and 4 deletions

View file

@ -91,7 +91,7 @@ fn annotation_type_for_level(level: Level) -> AnnotationType {
}
Level::Warning(_) => AnnotationType::Warning,
Level::Note | Level::OnceNote => AnnotationType::Note,
Level::Help => AnnotationType::Help,
Level::Help | Level::OnceHelp => AnnotationType::Help,
// FIXME(#59346): Not sure how to map this level
Level::FailureNote => AnnotationType::Error,
Level::Allow => panic!("Should not call with Allow"),