From f4a59c5745084a7eac49394430ca8306acff74d4 Mon Sep 17 00:00:00 2001 From: collin <16715212+collinc97@users.noreply.github.com> Date: Wed, 13 Jul 2022 21:05:38 -0700 Subject: [PATCH] cargo fmt --- compiler/parser/src/parser/expression.rs | 5 +---- compiler/passes/src/code_generation/visit_expressions.rs | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index e2c40ac898..b83e9fa8b4 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -467,10 +467,7 @@ impl ParserContext<'_> { None }; - Ok(CircuitVariableInitializer { - identifier, - expression, - }) + Ok(CircuitVariableInitializer { identifier, expression }) } /// Returns an [`Expression`] AST node if the next tokens represent a diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 62e4ce75fd..24c6aceab6 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -192,7 +192,8 @@ impl<'a> CodeGenerator<'a> { "into {dest} as {name};", dest = destination_register, name = name, - ).expect("failed to write to string"); + ) + .expect("failed to write to string"); instructions.push_str(&circuit_init_instruction);