mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 07:11:53 +03:00
Fmt
This commit is contained in:
parent
b43d8b318f
commit
0936771fb4
@ -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,
|
||||
)
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user