Skip to content

Commit

Permalink
rm alias of enum
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Sep 8, 2023
1 parent 168e684 commit 58fb956
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tokio/src/runtime/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}
}
Expand Down

0 comments on commit 58fb956

Please sign in to comment.