From 2527cc2de7c7d0577bd39119048ba2ac26ebf42a Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 12 Oct 2024 10:57:22 -0400 Subject: [PATCH] Clean up --- dust-lang/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dust-lang/src/parser.rs b/dust-lang/src/parser.rs index 7bf5cc4..251dffc 100644 --- a/dust-lang/src/parser.rs +++ b/dust-lang/src/parser.rs @@ -1119,7 +1119,7 @@ impl<'src> Parser<'src> { self.current_token = function_parser.current_token; self.current_position = function_parser.current_position; - let function = Value::function(function_parser.take_chunk()); + let function = Value::function(function_parser.chunk); let function_end = self.current_position.1; self.lexer.skip_to(function_end);