Selaa lähdekoodia

Mark CMZError as non_exhaustive for future extensibility

Ian Goldberg 3 viikkoa sitten
vanhempi
commit
8f9a595aa9
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/lib.rs

+ 1 - 0
src/lib.rs

@@ -455,6 +455,7 @@ macro_rules! CMZ {
 
 /// The type for errors generated by the prepare, handle, and finalize
 /// functions generated by the CMZProtocol family of macros
+#[non_exhaustive]
 #[derive(Error, Debug)]
 pub enum CMZError {
     #[error("Hide attribute {1} of credential {0} was not passed to prepare")]