We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc3194 commit 4f06630Copy full SHA for 4f06630
Cargo.toml
@@ -19,4 +19,4 @@ members = ["pcre2-sys"]
19
libc = "0.2.46"
20
log = "0.4.5"
21
pcre2-sys = { version = "0.2.0", path = "pcre2-sys" }
22
-thread_local = "0.3.6"
+thread_local = "1"
src/bytes.rs
@@ -772,7 +772,7 @@ impl Regex {
772
}
773
774
fn match_data(&self) -> &RefCell<MatchData> {
775
- let create = || Box::new(RefCell::new(self.new_match_data()));
+ let create = || RefCell::new(self.new_match_data());
776
self.match_data.get_or(create)
777
778
0 commit comments