diff --git a/parser/src/transforms/inlining.rs b/parser/src/transforms/inlining.rs index fa4a7b71..44ba9ce1 100644 --- a/parser/src/transforms/inlining.rs +++ b/parser/src/transforms/inlining.rs @@ -307,17 +307,13 @@ impl<'a> Inlining<'a> { Ok(vec![Statement::Expr(expr)]) } - Statement::Return(mut expr) => { - match expr { - Expr::Call(call) => { - self.expand_call(call) - } - _ => { - self.rewrite_expr(&mut expr)?; - Ok(vec![Statement::Return(expr)]) - } - } - } + Statement::Return(mut expr) => match expr { + Expr::Call(call) => self.expand_call(call), + _ => { + self.rewrite_expr(&mut expr)?; + Ok(vec![Statement::Return(expr)]) + } + }, } }