Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Ran cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanMarcus committed Oct 21, 2023
1 parent 8222aaa commit 6fe99b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compute/like.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ fn a_like_utf8_scalar<O: Offset, F: Fn(bool) -> bool>(
{
let needle = &rhs[1..rhs.len() - 1];
let finder = memchr::memmem::Finder::new(needle);
Bitmap::from_trusted_len_iter(lhs.values_iter().map(|x| op(finder.find(x.as_bytes()).is_some())))
Bitmap::from_trusted_len_iter(
lhs.values_iter()
.map(|x| op(finder.find(x.as_bytes()).is_some())),
)
} else {
let re_pattern = replace_pattern(rhs);
let re = Regex::new(&format!("^{re_pattern}$")).map_err(|e| {
Expand Down

0 comments on commit 6fe99b5

Please sign in to comment.