Skip to content

Commit 8a3c421

Browse files
author
Dima
committed
clippy fix
1 parent 6d71e03 commit 8a3c421

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

datafusion/functions/src/regex/regexpcount.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ where
343343
.map(|(value, flags)| {
344344
let pattern =
345345
compile_and_cache_regex(regex, flags, &mut regex_cache)?;
346-
count_matches(value, &pattern, start_scalar)
346+
count_matches(value, pattern, start_scalar)
347347
})
348348
.collect::<Result<Vec<i64>, ArrowError>>()?,
349349
)))
@@ -395,7 +395,7 @@ where
395395
let pattern =
396396
compile_and_cache_regex(regex, flags, &mut regex_cache)?;
397397

398-
count_matches(value, &pattern, start)
398+
count_matches(value, pattern, start)
399399
})
400400
.collect::<Result<Vec<i64>, ArrowError>>()?,
401401
)))
@@ -424,7 +424,7 @@ where
424424
flags_scalar,
425425
&mut regex_cache,
426426
)?;
427-
count_matches(value, &pattern, start_scalar)
427+
count_matches(value, pattern, start_scalar)
428428
})
429429
.collect::<Result<Vec<i64>, ArrowError>>()?,
430430
)))
@@ -458,7 +458,7 @@ where
458458
let pattern =
459459
compile_and_cache_regex(regex, flags, &mut regex_cache)?;
460460

461-
count_matches(value, &pattern, start_scalar)
461+
count_matches(value, pattern, start_scalar)
462462
})
463463
.collect::<Result<Vec<i64>, ArrowError>>()?,
464464
)))
@@ -494,7 +494,7 @@ where
494494
flags_scalar,
495495
&mut regex_cache,
496496
)?;
497-
count_matches(value, &pattern, start)
497+
count_matches(value, pattern, start)
498498
})
499499
.collect::<Result<Vec<i64>, ArrowError>>()?,
500500
)))
@@ -541,7 +541,7 @@ where
541541

542542
let pattern =
543543
compile_and_cache_regex(regex, flags, &mut regex_cache)?;
544-
count_matches(value, &pattern, start)
544+
count_matches(value, pattern, start)
545545
})
546546
.collect::<Result<Vec<i64>, ArrowError>>()?,
547547
)))

0 commit comments

Comments
 (0)