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"), } } }