Browse Source

AExprType implements Eq, not just PartialEq

Ian Goldberg 4 months ago
parent
commit
f2c9dc79ac
1 changed files with 1 additions and 1 deletions
  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 },