Browse Source

Derive Eq and PartialEq for StatementTree

Ian Goldberg 4 months ago
parent
commit
11006442d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sigma_compiler_core/src/sigma/combiners.rs

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

@@ -57,7 +57,7 @@ impl<'a> Visit<'a> for PrivScalarMap<'a> {
 /// one of its children is true.  A `Thresh` node (with threshold `k`) is
 /// one of its children is true.  A `Thresh` node (with threshold `k`) is
 /// true if at least `k` of its children are true.
 /// true if at least `k` of its children are true.
 
 
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Eq, PartialEq)]
 pub enum StatementTree {
 pub enum StatementTree {
     Leaf(Expr),
     Leaf(Expr),
     And(Vec<StatementTree>),
     And(Vec<StatementTree>),