chore: Unnecessary use of `borrow`

pull/24376/head
Stuart Carnie 2023-05-05 10:12:02 +10:00
parent f8b1d37d5a
commit 8b60a95a77
No known key found for this signature in database
GPG Key ID: 848D9C9718D78B4F
1 changed files with 1 additions and 2 deletions

View File

@ -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::<DataFusionError>(&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,
};