3
2
Quellcode durchsuchen

Mark CMZError as non_exhaustive for future extensibility

Ian Goldberg vor 4 Wochen
Ursprung
Commit
8f9a595aa9
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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")]