Skip to content

Commit f6f8276

Browse files
committed
deps: update to thread_local 1.0
1 parent ab5d913 commit f6f8276

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
1.3.3 (2020-01-09)
2+
==================
3+
This is a small maintenance release that upgrades the dependency on
4+
`thread_local` from `0.3` to `1.0`. The minimum supported Rust version remains
5+
at Rust 1.28.
6+
7+
18
1.3.2 (2020-01-09)
29
==================
310
This is a small maintenance release with some house cleaning and bug fixes.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ optional = true
115115

116116
# For managing regex caches quickly across multiple threads.
117117
[dependencies.thread_local]
118-
version = "0.3.6"
118+
version = "1"
119119
optional = true
120120

121121
# For parsing regular expressions.

src/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mod imp {
2626
}
2727

2828
pub fn get_or(&self, create: impl FnOnce() -> T) -> CachedGuard<T> {
29-
CachedGuard(self.0.get_or(|| Box::new(create())))
29+
CachedGuard(self.0.get_or(|| create()))
3030
}
3131
}
3232

0 commit comments

Comments
 (0)