From b2e08fe207f8b4adbd5ca1d4664e9432450aabfb Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Wed, 11 Dec 2024 19:13:06 -0500 Subject: [PATCH] fiddle --- src/process.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/process.rs b/src/process.rs index 8a9cf7d..9a17888 100644 --- a/src/process.rs +++ b/src/process.rs @@ -312,9 +312,8 @@ impl<'src> Process<'src> { pub fn eval(&mut self) -> LResult<'src> { use Ast::*; - let root_node = self.ast; - let root_span = self.span; - let result = match self.ast { + let (root_node, root_span) = (self.ast, self.span); + let result = match root_node { Nil => Ok(Value::Nil), Boolean(b) => Ok(Value::Boolean(*b)), Number(n) => Ok(Value::Number(*n)),