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:
@ -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"
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user