Browse Source

Match updated sigma-rs API

Ian Goldberg 1 month ago
parent
commit
d53071b359
1 changed files with 2 additions and 2 deletions
  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
                     #eq_code
                     #element_assigns
                     #element_assigns
 
 
-                    Ok(ComposedRelation::from(#lr_var))
+                    Ok(ComposedRelation::try_from(#lr_var).unwrap())
                 }
                 }
             },
             },
             quote! {
             quote! {
@@ -462,7 +462,7 @@ impl<'a> CodeGen<'a> {
             // leaf "true")
             // leaf "true")
             StatementTree::Leaf(_) if statement.is_leaf_true() => (
             StatementTree::Leaf(_) if statement.is_leaf_true() => (
                 quote! {
                 quote! {
-                    Ok(ComposedRelation::from(LinearRelation::<Point>::new()))
+                    Ok(ComposedRelation::try_from(LinearRelation::<Point>::new()).unwrap())
                 },
                 },
                 quote! {
                 quote! {
                     Ok(ComposedWitness::Simple(vec![]))
                     Ok(ComposedWitness::Simple(vec![]))