소스 검색

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 },