Skip to content

Commit

Permalink
resolve clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tlm365 committed Nov 12, 2024
1 parent f57400c commit 36df485
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions arrow-cast/src/cast/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ where
})
}

pub(crate) fn generic_string_to_decimal_cast<'a, T, S, Offset>(
pub(crate) fn generic_string_to_decimal_cast<'a, T, S>(
from: &'a S,
precision: u8,
scale: i8,
Expand All @@ -333,7 +333,6 @@ where
T: DecimalType,
T::Native: DecimalCast + ArrowNativeTypeOp,
&'a S: StringArrayType<'a>,
Offset: OffsetSizeTrait,
{
if cast_options.safe {
let iter = from.iter().map(|v| {
Expand Down Expand Up @@ -387,7 +386,7 @@ where
T: DecimalType,
T::Native: DecimalCast + ArrowNativeTypeOp,
{
generic_string_to_decimal_cast::<T, GenericStringArray<Offset>, Offset>(
generic_string_to_decimal_cast::<T, GenericStringArray<Offset>>(
from,
precision,
scale,
Expand All @@ -405,7 +404,7 @@ where
T: DecimalType,
T::Native: DecimalCast + ArrowNativeTypeOp,
{
generic_string_to_decimal_cast::<T, StringViewArray, i32>(from, precision, scale, cast_options)
generic_string_to_decimal_cast::<T, StringViewArray>(from, precision, scale, cast_options)
}

/// Cast Utf8 to decimal
Expand Down

0 comments on commit 36df485

Please sign in to comment.