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)),