regex: migrate grep-regex to regex-automata

We just do a "basic" dumb migration. We don't try to improve anything
here.
This commit is contained in:
Andrew Gallant
2023-06-15 15:05:07 -04:00
parent 1035f6b1ff
commit e028ea3792
12 changed files with 237 additions and 129 deletions

View File

@@ -26,7 +26,7 @@ impl MultiLiteralMatcher {
let ac = AhoCorasick::builder()
.match_kind(MatchKind::LeftmostFirst)
.build(literals)
.map_err(Error::regex)?;
.map_err(Error::generic)?;
Ok(MultiLiteralMatcher { ac })
}
}