From 2bce7ede6470f7db91181baa36b3eab3990cc704 Mon Sep 17 00:00:00 2001 From: Vaivaswatha Nagaraj Date: Sat, 6 Apr 2024 11:10:04 +0530 Subject: [PATCH] cargo fmt --- sway-core/src/ir_generation/function.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sway-core/src/ir_generation/function.rs b/sway-core/src/ir_generation/function.rs index 19070e04908..d3d3a253cfd 100644 --- a/sway-core/src/ir_generation/function.rs +++ b/sway-core/src/ir_generation/function.rs @@ -303,12 +303,13 @@ impl<'eng> FnCompiler<'eng> { _ => return Ok(TerminatorValue::new(val, context)), }; - let is_argument = - if let ty::TyExpressionVariant::VariableExpression { name, .. } = &ast_expr.expression { - self.function.get_arg(context, name.as_str()).is_some() - } else { - false - }; + let is_argument = if let ty::TyExpressionVariant::VariableExpression { name, .. } = + &ast_expr.expression + { + self.function.get_arg(context, name.as_str()).is_some() + } else { + false + }; let ptr_val = if is_argument { // The `ptr_to_int` instructions gets the address of a variable into an integer.