From 36c842d7ab116014ad03b1ab5bc62b3de7d99b4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= <tseeker@nocternity.net>
Date: Mon, 2 Jan 2023 21:40:30 +0100
Subject: [PATCH] Parser - Cleaning up after field removal

---
 src/parser.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parser.rs b/src/parser.rs
index 70acf22..b5e3bf0 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -683,7 +683,7 @@ impl Parser {
             Ok(ast::ExprNode::Grouping {
                 expression: Box::new(expr),
             })
-        } else if let Some(token) = self.expect(&[TokenType::Fun]) {
+        } else if self.expect(&[TokenType::Fun]).is_some() {
             let (params, body) = self.parse_function_info(FunctionKind::Lambda)?;
             Ok(ast::ExprNode::Lambda { params, body })
         } else if let Some(token) =