Skip to content

Commit

Permalink
Mark UnknownVariant as non_exhaustive.
Browse files Browse the repository at this point in the history
More variants may be added to handle quirks that we haven't yet covered.
  • Loading branch information
johanthoren committed Mar 6, 2024
1 parent 13ee3db commit 9c88ff6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub struct Thresholds {
pub critical: Option<NagiosRange>,
}

#[non_exhaustive]
#[derive(Debug, PartialEq)]
pub enum UnkownVariant {
NotMacOS,
Expand Down

0 comments on commit 9c88ff6

Please sign in to comment.