summaryrefslogtreecommitdiff
path: root/src/key.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-03-14 21:33:50 -0400
committerMica White <botahamec@outlook.com>2026-03-14 21:33:50 -0400
commit482b47f4ed786946acb324b60d9f7ae7dd8cc075 (patch)
tree4216f042597679f2b76adbb61d3ba9596e96a060 /src/key.rs
parentd9095d8fce59714f75019ecf68911d9931a1af15 (diff)
Apply clippy restrictionsHEADmain
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,