From eb1526943796ee5e1ac98860344a27e8c37a383f Mon Sep 17 00:00:00 2001 From: gluaxspeed Date: Tue, 2 Feb 2021 09:47:54 -0500 Subject: [PATCH] clean up a tad --- ast/src/expression/mod.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ast/src/expression/mod.rs b/ast/src/expression/mod.rs index 7d9826777f..69695eb450 100644 --- a/ast/src/expression/mod.rs +++ b/ast/src/expression/mod.rs @@ -286,14 +286,12 @@ impl<'ast> From> for Expression { // Handle calls, should only ever come after self. or self:: match expression.call { - Some(function) => { - return Expression::Call(CallExpression { - function: Box::new(final_expression), - arguments: function.expressions.into_iter().map(Expression::from).collect(), - span: Span::from(function.span), - }); - } - None => return final_expression, + Some(function) => Expression::Call(CallExpression { + function: Box::new(final_expression), + arguments: function.expressions.into_iter().map(Expression::from).collect(), + span: Span::from(function.span), + }), + None => final_expression, } } }