From 1a3a41997c2e970957265ddc8da463bb0e197bbf Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Thu, 18 Sep 2025 19:04:13 -0400 Subject: [PATCH] Clippy warning, fix needless mut refs and remove import --- core/translate/expr.rs | 2 +- core/translate/select.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/translate/expr.rs b/core/translate/expr.rs index 515d0a263..68ab0bafc 100644 --- a/core/translate/expr.rs +++ b/core/translate/expr.rs @@ -1,7 +1,7 @@ use std::sync::Arc; use tracing::{instrument, Level}; -use turso_parser::ast::{self, As, Expr, TableInternalId, UnaryOperator}; +use turso_parser::ast::{self, As, Expr, UnaryOperator}; use super::emitter::Resolver; use super::optimizer::Optimizable; diff --git a/core/translate/select.rs b/core/translate/select.rs index 7f95fd1d7..a1ec15abe 100644 --- a/core/translate/select.rs +++ b/core/translate/select.rs @@ -417,7 +417,7 @@ fn prepare_one_select_plan( bind_and_rewrite_expr( expr, Some(&mut plan.table_references), - Some(&mut plan.result_columns), + Some(&plan.result_columns), connection, param_ctx, )?; @@ -433,7 +433,7 @@ fn prepare_one_select_plan( bind_and_rewrite_expr( expr, Some(&mut plan.table_references), - Some(&mut plan.result_columns), + Some(&plan.result_columns), connection, param_ctx, )?; @@ -472,7 +472,7 @@ fn prepare_one_select_plan( bind_and_rewrite_expr( &mut o.expr, Some(&mut plan.table_references), - Some(&mut plan.result_columns), + Some(&plan.result_columns), connection, param_ctx, )?;