This is an automated email from the ASF dual-hosted git repository.

dheres pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 98f1bc0171 Minor: remove useless clone based on Clippy (#8300)
98f1bc0171 is described below

commit 98f1bc0171874d181aee8bc654bc81ab22314a29
Author: Alex Huang <[email protected]>
AuthorDate: Wed Nov 22 16:07:39 2023 +0100

    Minor: remove useless clone based on Clippy (#8300)
---
 datafusion/expr/src/interval_arithmetic.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datafusion/expr/src/interval_arithmetic.rs 
b/datafusion/expr/src/interval_arithmetic.rs
index c85c6fc66b..5d34fe91c3 100644
--- a/datafusion/expr/src/interval_arithmetic.rs
+++ b/datafusion/expr/src/interval_arithmetic.rs
@@ -698,7 +698,7 @@ impl Interval {
         // We want 0 to be approachable from both negative and positive sides.
         let zero_point = match &dt {
             DataType::Float32 | DataType::Float64 => Self::new(zero.clone(), 
zero),
-            _ => Self::new(prev_value(zero.clone()), next_value(zero.clone())),
+            _ => Self::new(prev_value(zero.clone()), next_value(zero)),
         };
 
         // Exit early with an unbounded interval if zero is strictly inside the

Reply via email to