소스 검색

Derive Eq and PartialEq for StatementTree

Ian Goldberg 4 달 전
부모
커밋
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>),