Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tlm365 committed Dec 6, 2024
1 parent e9dec56 commit 7b7af02
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions arrow-string/src/regexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ macro_rules! process_regexp_array_match {
};
}

pub fn regexp_array_match<OffsetSize: OffsetSizeTrait>(
fn regexp_array_match<OffsetSize: OffsetSizeTrait>(
array: &GenericStringArray<OffsetSize>,
regex_array: &GenericStringArray<OffsetSize>,
flags_array: Option<&GenericStringArray<OffsetSize>>,
Expand All @@ -325,7 +325,7 @@ pub fn regexp_array_match<OffsetSize: OffsetSizeTrait>(
Ok(Arc::new(list_builder.finish()))
}

pub fn regexp_array_match_utf8view(
fn regexp_array_match_utf8view(
array: &StringViewArray,
regex_array: &StringViewArray,
flags_array: Option<&StringViewArray>,
Expand Down Expand Up @@ -608,7 +608,7 @@ mod tests {
],
StringArray,
GenericStringBuilder<i32>,
vec![Some("005"), Some("7"), None, None, None, Some("")]
[Some("005"), Some("7"), None, None, None, Some("")]
);
test_match_single_group!(
match_single_group_string_view,
Expand All @@ -630,7 +630,7 @@ mod tests {
],
StringViewArray,
StringViewBuilder,
vec![Some("005"), Some("7"), None, None, None, Some("")]
[Some("005"), Some("7"), None, None, None, Some("")]
);

macro_rules! test_match_single_group_with_flags {
Expand Down Expand Up @@ -672,7 +672,7 @@ mod tests {
vec!["i"; 4],
StringArray,
GenericStringBuilder<i32>,
vec![None, Some("7"), None, None]
[None, Some("7"), None, None]
);
test_match_single_group_with_flags!(
match_single_group_with_flags_stringview,
Expand All @@ -681,7 +681,7 @@ mod tests {
vec!["i"; 4],
StringViewArray,
StringViewBuilder,
vec![None, Some("7"), None, None]
[None, Some("7"), None, None]
);

macro_rules! test_match_scalar_pattern {
Expand Down Expand Up @@ -722,7 +722,7 @@ mod tests {
Some("i"),
StringArray,
GenericStringBuilder<i32>,
vec![None, Some("7"), None, None]
[None, Some("7"), None, None]
);
test_match_scalar_pattern!(
match_scalar_pattern_stringview_with_flags,
Expand All @@ -731,7 +731,7 @@ mod tests {
Some("i"),
StringViewArray,
StringViewBuilder,
vec![None, Some("7"), None, None]
[None, Some("7"), None, None]
);

test_match_scalar_pattern!(
Expand All @@ -741,7 +741,7 @@ mod tests {
None::<&str>,
StringArray,
GenericStringBuilder<i32>,
vec![None, Some("7"), None, None]
[None, Some("7"), None, None]
);
test_match_scalar_pattern!(
match_scalar_pattern_stringview_no_flags,
Expand All @@ -750,7 +750,7 @@ mod tests {
None::<&str>,
StringViewArray,
StringViewBuilder,
vec![None, Some("7"), None, None]
[None, Some("7"), None, None]
);

macro_rules! test_match_scalar_no_pattern {
Expand Down Expand Up @@ -788,15 +788,15 @@ mod tests {
StringArray,
DataType::Utf8,
GenericStringBuilder<i32>,
vec![None::<&str>, None, None, None]
[None::<&str>, None, None, None]
);
test_match_scalar_no_pattern!(
match_scalar_no_pattern_stringview,
vec![Some("abc-005-def"), Some("X-7-5"), Some("X545"), None],
StringViewArray,
DataType::Utf8View,
StringViewBuilder,
vec![None::<&str>, None, None, None]
[None::<&str>, None, None, None]
);

macro_rules! test_match_single_group_not_skip {
Expand Down Expand Up @@ -834,15 +834,15 @@ mod tests {
r"foo",
StringArray,
GenericStringBuilder<i32>,
vec![Some("foo")]
[Some("foo")]
);
test_match_single_group_not_skip!(
match_single_group_not_skip_stringview,
vec![Some("foo"), Some("bar")],
r"foo",
StringViewArray,
StringViewBuilder,
vec![Some("foo")]
[Some("foo")]
);

macro_rules! test_flag_utf8 {
Expand Down

0 comments on commit 7b7af02

Please sign in to comment.