Skip to content

Commit

Permalink
Minor: remove useless clone based on Clippy (#8300)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H authored Nov 22, 2023
1 parent f2b0344 commit 98f1bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/expr/src/interval_arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98f1bc0

Please sign in to comment.