Skip to content

Commit

Permalink
Prevent exhaustive matching on the Status enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebarnard committed Dec 1, 2017
1 parent fa4fcd3 commit dc7a6e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,7 @@ pub enum Status {
PrimalInfeasibleInaccurate,
DualInfeasible,
DualInfeasibleInaccurate,
// Prevent exhaustive enum matching
#[doc(hidden)]
__Nonexhaustive,
}

0 comments on commit dc7a6e4

Please sign in to comment.