summaryrefslogtreecommitdiff
path: root/src/key.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/key.rs')
-rwxr-xr-xsrc/key.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/key.rs b/src/key.rs
index b29245e..c788b32 100755
--- a/src/key.rs
+++ b/src/key.rs
@@ -75,9 +75,8 @@ impl ThreadKey {
/// ```
#[must_use]
pub fn get() -> Option<Self> {
- // safety: we just acquired the lock
- // safety: if this code changes, check to ensure the requirement for
- // the Drop implementation is still true
+ // if this code changes, check to ensure the requirement for
+ // the Drop implementation is still true
KEY.with(|key| {
key.try_lock().then_some(Self {
phantom: PhantomData,