diff options
| author | Botahamec <botahamec@outlook.com> | 2022-10-26 22:42:42 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2022-10-26 22:42:42 -0400 |
| commit | c45969c24e72d9b73382049cd27c37ad64293ee4 (patch) | |
| tree | 72f2ef72af5cfa7e6f1d14d1505b665a9ed7464f | |
| parent | 3bae2353944d5b3686ee7b3d4a5527fb37d5565f (diff) | |
Used a more future-proof implementation
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } } |
