From c45969c24e72d9b73382049cd27c37ad64293ee4 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Wed, 26 Oct 2022 22:42:42 -0400 Subject: Used a more future-proof implementation --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') 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::().fmt(f) } } -- cgit v1.2.3