浏览代码

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")]