浏览代码

Match updated sigma-rs API

Ian Goldberg 1 月之前
父节点
当前提交
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![]))