remove clippy unnecessary wraps (#449)
diff --git a/arrow/src/compute/kernels/cast.rs b/arrow/src/compute/kernels/cast.rs
index 150f1f6..d755e1a 100644
--- a/arrow/src/compute/kernels/cast.rs
+++ b/arrow/src/compute/kernels/cast.rs
@@ -956,7 +956,6 @@
/// 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<TO>(array: &ArrayRef, to_type: DataType) -> Result<ArrayRef>
where
TO: ArrowNumericType,
@@ -974,7 +973,6 @@
}
/// Convert Array into a PrimitiveArray of type, and apply numeric cast
-#[allow(clippy::unnecessary_wraps)]
fn cast_numeric_arrays<FROM, TO>(from: &ArrayRef) -> Result<ArrayRef>
where
FROM: ArrowNumericType,
@@ -1006,7 +1004,6 @@
}
/// Cast numeric types to Utf8
-#[allow(clippy::unnecessary_wraps)]
fn cast_numeric_to_string<FROM, OffsetSize>(array: &ArrayRef) -> Result<ArrayRef>
where
FROM: ArrowNumericType,
@@ -1035,7 +1032,6 @@
}
/// Cast numeric types to Utf8
-#[allow(clippy::unnecessary_wraps)]
fn cast_string_to_numeric<T, Offset: StringOffsetSizeTrait>(
from: &ArrayRef,
cast_options: &CastOptions,
@@ -1101,7 +1097,6 @@
}
/// Casts generic string arrays to Date32Array
-#[allow(clippy::unnecessary_wraps)]
fn cast_string_to_date32<Offset: StringOffsetSizeTrait>(
array: &dyn Array,
cast_options: &CastOptions,
@@ -1164,7 +1159,6 @@
}
/// Casts generic string arrays to Date64Array
-#[allow(clippy::unnecessary_wraps)]
fn cast_string_to_date64<Offset: StringOffsetSizeTrait>(
array: &dyn Array,
cast_options: &CastOptions,
@@ -1226,7 +1220,6 @@
}
/// Casts generic string arrays to TimeStampNanosecondArray
-#[allow(clippy::unnecessary_wraps)]
fn cast_string_to_timestamp_ns<Offset: StringOffsetSizeTrait>(
array: &dyn Array,
cast_options: &CastOptions,
@@ -1308,7 +1301,6 @@
/// Cast Boolean types to numeric
///
/// `false` returns 0 while `true` returns 1
-#[allow(clippy::unnecessary_wraps)]
fn cast_bool_to_numeric<TO>(
from: &ArrayRef,
cast_options: &CastOptions,