From 58a311764797bb446ded618ecf46d9dec4ee9388 Mon Sep 17 00:00:00 2001 From: Vedat Can Keklik Date: Sat, 22 Jun 2024 11:11:16 +0300 Subject: [PATCH] fix: Redundant Box<> --- lykiadb-server/src/engine/interpreter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))?;