From e1c2dc484790e793146ebd70a0c3380c2fc68c31 Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Fri, 11 Jun 2021 21:30:31 +0800 Subject: [PATCH] remove clippy unnecessary wraps --- arrow/src/compute/kernels/cast.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arrow/src/compute/kernels/cast.rs b/arrow/src/compute/kernels/cast.rs index 463da7c6fdfe..c33b1203877b 100644 --- a/arrow/src/compute/kernels/cast.rs +++ b/arrow/src/compute/kernels/cast.rs @@ -956,7 +956,6 @@ const EPOCH_DAYS_FROM_CE: i32 = 719_163; /// Arrays should have the same primitive data type, otherwise this should fail. /// We do not perform this check on primitive data types as we only use this /// function internally, where it is guaranteed to be infallible. -#[allow(clippy::unnecessary_wraps)] fn cast_array_data(array: &ArrayRef, to_type: DataType) -> Result where TO: ArrowNumericType, @@ -974,7 +973,6 @@ where } /// Convert Array into a PrimitiveArray of type, and apply numeric cast -#[allow(clippy::unnecessary_wraps)] fn cast_numeric_arrays(from: &ArrayRef) -> Result where FROM: ArrowNumericType, @@ -1006,7 +1004,6 @@ where } /// Cast numeric types to Utf8 -#[allow(clippy::unnecessary_wraps)] fn cast_numeric_to_string(array: &ArrayRef) -> Result where FROM: ArrowNumericType, @@ -1035,7 +1032,6 @@ where } /// Cast numeric types to Utf8 -#[allow(clippy::unnecessary_wraps)] fn cast_string_to_numeric( from: &ArrayRef, cast_options: &CastOptions, @@ -1101,7 +1097,6 @@ where } /// Casts generic string arrays to Date32Array -#[allow(clippy::unnecessary_wraps)] fn cast_string_to_date32( array: &dyn Array, cast_options: &CastOptions, @@ -1164,7 +1159,6 @@ fn cast_string_to_date32( } /// Casts generic string arrays to Date64Array -#[allow(clippy::unnecessary_wraps)] fn cast_string_to_date64( array: &dyn Array, cast_options: &CastOptions, @@ -1226,7 +1220,6 @@ fn cast_string_to_date64( } /// Casts generic string arrays to TimeStampNanosecondArray -#[allow(clippy::unnecessary_wraps)] fn cast_string_to_timestamp_ns( array: &dyn Array, cast_options: &CastOptions, @@ -1308,7 +1301,6 @@ where /// Cast Boolean types to numeric /// /// `false` returns 0 while `true` returns 1 -#[allow(clippy::unnecessary_wraps)] fn cast_bool_to_numeric( from: &ArrayRef, cast_options: &CastOptions,