Skip to content

Commit

Permalink
fix(ion-schema): add non_exhaustive to ViolationCode enum (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
etolbakov authored May 3, 2024
1 parent bf9b27f commit e996aec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ion-schema/src/violation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ impl fmt::Display for Violation {

/// Represents violation code that indicates the type of the violation
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[non_exhaustive]
pub enum ViolationCode {
AllTypesNotMatched,
AnnotationMismatched,
Expand Down

0 comments on commit e996aec

Please sign in to comment.