diff --git a/compiler/passes/src/static_single_assignment/rename_expression.rs b/compiler/passes/src/static_single_assignment/rename_expression.rs index 5246aa30c5..7f06f74b44 100644 --- a/compiler/passes/src/static_single_assignment/rename_expression.rs +++ b/compiler/passes/src/static_single_assignment/rename_expression.rs @@ -158,10 +158,10 @@ impl ExpressionConsumer for StaticSingleAssigner<'_> { // Note that we do not construct a new assignment statement for the tuple expression. // Expressions that produce compound data types need to be handled separately. ( - Expression::Circuit(CircuitExpression{ + Expression::Circuit(CircuitExpression { name: input.name, span: input.span, - members + members, }), statements, ) diff --git a/compiler/passes/src/static_single_assignment/rename_program.rs b/compiler/passes/src/static_single_assignment/rename_program.rs index 7a0b9bcd9e..e244ecc52f 100644 --- a/compiler/passes/src/static_single_assignment/rename_program.rs +++ b/compiler/passes/src/static_single_assignment/rename_program.rs @@ -17,7 +17,10 @@ use crate::StaticSingleAssigner; use itertools::Itertools; -use leo_ast::{Block, CircuitExpression, CircuitVariableInitializer, Expression, Function, FunctionConsumer, Identifier, Program, ProgramConsumer, ReturnStatement, Statement, StatementConsumer, TernaryExpression, TupleExpression}; +use leo_ast::{ + Block, CircuitExpression, CircuitVariableInitializer, Expression, Function, FunctionConsumer, Identifier, Program, + ProgramConsumer, ReturnStatement, Statement, StatementConsumer, TernaryExpression, TupleExpression, +}; impl FunctionConsumer for StaticSingleAssigner<'_> { type Output = Function; @@ -105,7 +108,8 @@ impl FunctionConsumer for StaticSingleAssigner<'_> { match if_false.expression { None => Expression::Identifier(if_false.identifier), Some(expr) => expr, - }); + }, + ); CircuitVariableInitializer { identifier: if_true.identifier, expression: Some(expression),