1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-14 22:15:13 +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

@ -18,4 +18,4 @@ grep-matcher = { version = "0.1.2", path = "../grep-matcher" }
log = "0.4.5"
regex = "1.1"
regex-syntax = "0.6.5"
thread_local = "0.3.6"
thread_local = "1"

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);