1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-20 06:15:37 +02:00

deps: update to thread_local 1.0

We also update the pcre2 and regex dependencies, which removes any other
lingering uses of thread_local 0.3.
This commit is contained in:
Andrew Gallant
2020-01-09 20:58:28 -05:00
parent bd7a42602f
commit cb2f6ddc61
6 changed files with 23 additions and 23 deletions

View File

@ -78,7 +78,7 @@ impl Matcher for WordMatcher {
// if it's worth it.
let cell = self.locs.get_or(|| {
Box::new(RefCell::new(self.regex.capture_locations()))
RefCell::new(self.regex.capture_locations())
});
let mut caps = cell.borrow_mut();
self.regex.captures_read_at(&mut caps, haystack, at);