summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2022-10-26 22:42:42 -0400
committerBotahamec <botahamec@outlook.com>2022-10-26 22:42:42 -0400
commitc45969c24e72d9b73382049cd27c37ad64293ee4 (patch)
tree72f2ef72af5cfa7e6f1d14d1505b665a9ed7464f
parent3bae2353944d5b3686ee7b3d4a5527fb37d5565f (diff)
Used a more future-proof implementation
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a2a3f5c..be3d05b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,4 @@
+use std::any::type_name;
use std::fmt::{self, Debug};
use parking_lot::Mutex;
@@ -13,7 +14,7 @@ pub struct ThreadKey {
impl Debug for ThreadKey {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- "ThreadKey".fmt(f)
+ type_name::<Self>().fmt(f)
}
}