From 210ae47c8bcc9029261548c5a334296bde5ac4f9 Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 13 May 2018 01:43:29 -0700 Subject: [PATCH] Get rid of lambda --- schala-lang/src/parsing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schala-lang/src/parsing.rs b/schala-lang/src/parsing.rs index 772774d..a9d3c21 100644 --- a/schala-lang/src/parsing.rs +++ b/schala-lang/src/parsing.rs @@ -686,14 +686,14 @@ impl Parser { use self::ExpressionType::*; let old_struct_value = self.restrictions.no_struct_literal; self.restrictions.no_struct_literal = false; - let output = (|| { + let output = { let mut inner = delimited!(self, LParen, '(', expression, Comma, RParen, ')'); match inner.len() { 0 => Ok(Expression(TupleLiteral(vec![]), None)), 1 => Ok(inner.pop().unwrap()), _ => Ok(Expression(TupleLiteral(inner), None)), } - })(); + }; self.restrictions.no_struct_literal = old_struct_value; output });