Explorar o código

Match updated sigma-rs API

Ian Goldberg hai 1 mes
pai
achega
d53071b359
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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![]))