소스 검색

Match updated sigma-rs API

Ian Goldberg 6 달 전
부모
커밋
d53071b359
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      sigma_compiler_core/src/sigma/codegen.rs

+ 2 - 2
sigma_compiler_core/src/sigma/codegen.rs

@@ -434,7 +434,7 @@ impl<'a> CodeGen<'a> {
                     #eq_code
                     #element_assigns
 
-                    Ok(ComposedRelation::from(#lr_var))
+                    Ok(ComposedRelation::try_from(#lr_var).unwrap())
                 }
             },
             quote! {
@@ -462,7 +462,7 @@ impl<'a> CodeGen<'a> {
             // leaf "true")
             StatementTree::Leaf(_) if statement.is_leaf_true() => (
                 quote! {
-                    Ok(ComposedRelation::from(LinearRelation::<Point>::new()))
+                    Ok(ComposedRelation::try_from(LinearRelation::<Point>::new()).unwrap())
                 },
                 quote! {
                     Ok(ComposedWitness::Simple(vec![]))