From 6030e82c4a0933324ba72359cb6b20fa4c34ee6e Mon Sep 17 00:00:00 2001 From: Michael Levin Date: Thu, 19 Dec 2024 12:14:52 -0800 Subject: [PATCH] Fixing clippy -- useless conversion --- arrow-arith/src/numeric.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arrow-arith/src/numeric.rs b/arrow-arith/src/numeric.rs index 0495d6320a3..848c2121343 100644 --- a/arrow-arith/src/numeric.rs +++ b/arrow-arith/src/numeric.rs @@ -836,15 +836,7 @@ fn interval_div_op( l_s, r_int, r_s, - T::div_int( - l_interval, - r_int.try_into().map_err(|e| { - ArrowError::InvalidArgumentError(format!( - "Cannot safely convert {:?} to i32: {}", - r_int, e - )) - })? - ) + T::div_int(l_interval, r_int) )) } DataType::Float64 => {