Skip to content

Commit 4f06630

Browse files
committed
deps: update to thread_local 1.0
1 parent 1cc3194 commit 4f06630

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ members = ["pcre2-sys"]
1919
libc = "0.2.46"
2020
log = "0.4.5"
2121
pcre2-sys = { version = "0.2.0", path = "pcre2-sys" }
22-
thread_local = "0.3.6"
22+
thread_local = "1"

src/bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ impl Regex {
772772
}
773773

774774
fn match_data(&self) -> &RefCell<MatchData> {
775-
let create = || Box::new(RefCell::new(self.new_match_data()));
775+
let create = || RefCell::new(self.new_match_data());
776776
self.match_data.get_or(create)
777777
}
778778

0 commit comments

Comments
 (0)