From 07e83f7060219544ae700b4eea013bf3124db58a Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Tue, 4 Jul 2023 17:03:59 +0100 Subject: [PATCH] Clippy --- datafusion/physical-expr/src/expressions/binary.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datafusion/physical-expr/src/expressions/binary.rs b/datafusion/physical-expr/src/expressions/binary.rs index 51e8cd411f4e4..7633645e9d078 100644 --- a/datafusion/physical-expr/src/expressions/binary.rs +++ b/datafusion/physical-expr/src/expressions/binary.rs @@ -586,15 +586,15 @@ impl PhysicalExpr for BinaryExpr { if self.op.is_numerical_operators() { return match (&left_value, &right_value) { (ColumnarValue::Array(left), ColumnarValue::Array(right)) => { - self.evaluate_datum(&*left, &*right) + self.evaluate_datum(&left.as_ref(), &right) } (ColumnarValue::Scalar(left), ColumnarValue::Array(right)) => { let left = left.to_array(); - self.evaluate_datum(&Scalar::new(left.as_ref()), &*right) + self.evaluate_datum(&Scalar::new(left.as_ref()), &right.as_ref()) } (ColumnarValue::Array(left), ColumnarValue::Scalar(right)) => { let right = right.to_array(); - self.evaluate_datum(&*left, &Scalar::new(right.as_ref())) + self.evaluate_datum(&left.as_ref(), &Scalar::new(right.as_ref())) } (ColumnarValue::Scalar(left), ColumnarValue::Scalar(right)) => { let left = left.to_array();