Skip to content

Commit

Permalink
fix: Redundant Box<>
Browse files Browse the repository at this point in the history
  • Loading branch information
can-keklik committed Jun 22, 2024
1 parent 81383b0 commit 58a3117
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lykiadb-server/src/engine/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl Interpreter {
&mut self,
program: Arc<Program>,
operation: &Operation,
expr: &Box<Expr>,
expr: &Expr,
) -> Result<RV, HaltReason> {
if *operation == Operation::Subtract {
if let Some(num) = self.visit_expr((program, expr))?.as_number() {
Expand All @@ -212,8 +212,8 @@ impl Interpreter {
fn eval_binary(
&mut self,
program: Arc<Program>,
lexpr: &Box<Expr>,
rexpr: &Box<Expr>,
lexpr: &Expr,
rexpr: &Expr,
operation: Operation,
) -> Result<RV, HaltReason> {
let left_eval = self.visit_expr((program.clone(), lexpr))?;
Expand Down

0 comments on commit 58a3117

Please sign in to comment.