From 58fb956a115a07b3de05ab017b1a55bfdd13f7b9 Mon Sep 17 00:00:00 2001 From: spongecaptain Date: Sun, 3 Sep 2023 20:58:20 +0800 Subject: [PATCH] rm alias of enum --- tokio/src/runtime/handle.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs index 722c80f9bfb..0c6fd0d2f2c 100644 --- a/tokio/src/runtime/handle.rs +++ b/tokio/src/runtime/handle.rs @@ -604,10 +604,9 @@ enum TryCurrentErrorKind { impl fmt::Debug for TryCurrentErrorKind { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - use TryCurrentErrorKind as E; match self { - E::NoContext => f.write_str("NoContext"), - E::ThreadLocalDestroyed => f.write_str("ThreadLocalDestroyed"), + TryCurrentErrorKind::NoContext => f.write_str("NoContext"), + TryCurrentErrorKind::ThreadLocalDestroyed => f.write_str("ThreadLocalDestroyed"), } } }