You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by dh...@apache.org on 2023/11/22 15:07:49 UTC

(arrow-datafusion) branch main updated: Minor: remove useless clone based on Clippy (#8300)

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 <hu...@gmail.com>
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