From 7c9a5ad8aa38cd19121b818ab58ac7ec041dfe51 Mon Sep 17 00:00:00 2001 From: collin Date: Wed, 21 Oct 2020 00:19:30 -0700 Subject: [PATCH] fix reference error --- compiler/src/expression/expression.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/expression/expression.rs b/compiler/src/expression/expression.rs index c97be901a5..042e5ec422 100644 --- a/compiler/src/expression/expression.rs +++ b/compiler/src/expression/expression.rs @@ -54,7 +54,7 @@ impl> ConstrainedProgram { Expression::Address(address, span) => Ok(ConstrainedValue::Address(Address::constant(address, &span)?)), Expression::Boolean(boolean, span) => Ok(ConstrainedValue::Boolean(new_bool_constant(boolean, &span)?)), Expression::Field(field, span) => Ok(ConstrainedValue::Field(FieldType::constant(field, &span)?)), - Expression::Group(group_element) => Ok(ConstrainedValue::Group(G::constant(group_element)?)), + Expression::Group(group_element) => Ok(ConstrainedValue::Group(G::constant(*group_element)?)), Expression::Implicit(value, span) => Ok(enforce_number_implicit(expected_type, value, &span)?), Expression::Integer(type_, integer, span) => Ok(ConstrainedValue::Integer(Integer::new_constant( &type_, integer, &span,