diff --git a/types/src/circuits/circuit.rs b/types/src/circuits/circuit.rs index 58d8015fad..f2067ff602 100644 --- a/types/src/circuits/circuit.rs +++ b/types/src/circuits/circuit.rs @@ -11,17 +11,14 @@ pub struct Circuit { impl<'ast> From> for Circuit { fn from(circuit: AstCircuit<'ast>) -> Self { - let variable = Identifier::from(circuit.identifier); + let circuit_name = Identifier::from(circuit.identifier); let members = circuit .members .into_iter() .map(|member| CircuitMember::from(member)) .collect(); - Self { - circuit_name: variable, - members, - } + Self { circuit_name, members } } } diff --git a/types/src/expression.rs b/types/src/expression.rs index 801c13817e..3967b1f066 100644 --- a/types/src/expression.rs +++ b/types/src/expression.rs @@ -161,14 +161,14 @@ impl<'ast> fmt::Display for Expression { impl<'ast> From> for Expression { fn from(expression: CircuitInlineExpression<'ast>) -> Self { - let variable = Identifier::from(expression.identifier); + let circuit_name = Identifier::from(expression.identifier); let members = expression .members .into_iter() .map(|member| CircuitFieldDefinition::from(member)) .collect::>(); - Expression::Circuit(variable, members) + Expression::Circuit(circuit_name, members) } }