diff --git a/lykiadb-server/src/engine/interpreter.rs b/lykiadb-server/src/engine/interpreter.rs index a874c82..ca05ebd 100644 --- a/lykiadb-server/src/engine/interpreter.rs +++ b/lykiadb-server/src/engine/interpreter.rs @@ -197,7 +197,7 @@ impl Interpreter { &mut self, program: Arc, operation: &Operation, - expr: &Box, + expr: &Expr, ) -> Result { if *operation == Operation::Subtract { if let Some(num) = self.visit_expr((program, expr))?.as_number() { @@ -212,8 +212,8 @@ impl Interpreter { fn eval_binary( &mut self, program: Arc, - lexpr: &Box, - rexpr: &Box, + lexpr: &Expr, + rexpr: &Expr, operation: Operation, ) -> Result { let left_eval = self.visit_expr((program.clone(), lexpr))?;