Преглед на файлове

Derive Eq and PartialEq for StatementTree

Ian Goldberg преди 8 месеца
родител
ревизия
11006442d2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 /// true if at least `k` of its children are true.
 
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Eq, PartialEq)]
 pub enum StatementTree {
     Leaf(Expr),
     And(Vec<StatementTree>),