From e996aeceb4adc084edc81217bb600575ed7c68a0 Mon Sep 17 00:00:00 2001 From: Eugene Tolbakov Date: Sat, 4 May 2024 00:17:10 +0100 Subject: [PATCH] fix(ion-schema): add non_exhaustive to ViolationCode enum (#213) --- ion-schema/src/violation.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ion-schema/src/violation.rs b/ion-schema/src/violation.rs index 6846457..aa5c1f1 100644 --- a/ion-schema/src/violation.rs +++ b/ion-schema/src/violation.rs @@ -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,