From 8b60a95a776d5fd8427015f1cb1d2978a1348756 Mon Sep 17 00:00:00 2001 From: Stuart Carnie Date: Fri, 5 May 2023 10:12:02 +1000 Subject: [PATCH] chore: Unnecessary use of `borrow` --- iox_query_influxql/src/plan/rewriter.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iox_query_influxql/src/plan/rewriter.rs b/iox_query_influxql/src/plan/rewriter.rs index c23ac6a9aa..90e2a4089a 100644 --- a/iox_query_influxql/src/plan/rewriter.rs +++ b/iox_query_influxql/src/plan/rewriter.rs @@ -16,7 +16,6 @@ use influxdb_influxql_parser::select::{ Dimension, Field, FromMeasurementClause, GroupByClause, MeasurementSelection, SelectStatement, }; use itertools::Itertools; -use std::borrow::Borrow; use std::collections::{HashMap, HashSet}; use std::ops::{ControlFlow, Deref}; @@ -355,7 +354,7 @@ fn field_list_expand_wildcards( if let ControlFlow::Break(e) = sel.fields.iter_mut().try_for_each(|f| { walk_expr_mut::(&mut f.expr, &mut |e| { if matches!(e, Expr::VarRef(_)) { - let new_type = match evaluate_type(s, e.borrow(), &sel.from) { + let new_type = match evaluate_type(s, e, &sel.from) { Err(e) => ControlFlow::Break(e)?, Ok(v) => v, };