mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-30 19:51:58 -07:00
deps: initial migration steps to regex 1.9
This leaves the grep-regex crate in tatters. Pretty much the entire thing needs to be re-worked. The upshot is that it should result in some big simplifications. I hope. The idea here is to drop down and actually use regex-automata 0.3 instead of the regex crate itself.
This commit is contained in:
@@ -818,7 +818,7 @@ impl MultiStrategyBuilder {
|
||||
|
||||
fn prefix(self) -> PrefixStrategy {
|
||||
PrefixStrategy {
|
||||
matcher: AhoCorasick::new_auto_configured(&self.literals),
|
||||
matcher: AhoCorasick::new(&self.literals).unwrap(),
|
||||
map: self.map,
|
||||
longest: self.longest,
|
||||
}
|
||||
@@ -826,7 +826,7 @@ impl MultiStrategyBuilder {
|
||||
|
||||
fn suffix(self) -> SuffixStrategy {
|
||||
SuffixStrategy {
|
||||
matcher: AhoCorasick::new_auto_configured(&self.literals),
|
||||
matcher: AhoCorasick::new(&self.literals).unwrap(),
|
||||
map: self.map,
|
||||
longest: self.longest,
|
||||
}
|
||||
|
Reference in New Issue
Block a user