浏览代码

AExprType implements Eq, not just PartialEq

Ian Goldberg 4 月之前
父节点
当前提交
f2c9dc79ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sigma_compiler_core/src/sigma/types.rs

+ 1 - 1
sigma_compiler_core/src/sigma/types.rs

@@ -21,7 +21,7 @@ use syn::{Error, Expr};
 /// Note that while an individual variable cannot be a private `Point`,
 /// it is common to construct an arithmetic expression of that type, for
 /// example by multiplying a private `Scalar` by a public `Point`.
-#[derive(Copy, Clone, Debug, PartialEq)]
+#[derive(Copy, Clone, Debug, PartialEq, Eq)]
 pub enum AExprType {
     Scalar { is_pub: bool, is_vec: bool },
     Point { is_pub: bool, is_vec: bool },