소스 검색

Mark CMZError as non_exhaustive for future extensibility

Ian Goldberg 2 주 전
부모
커밋
8f9a595aa9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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")]