Skip to content

Commit

Permalink
Use derived Debug for ThreadId
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Apr 4, 2017
1 parent 2820295 commit cd14a32
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/libstd/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ pub fn park_timeout(dur: Duration) {
/// assert!(thread::current().id() != other_thread_id);
/// ```
#[unstable(feature = "thread_id", issue = "21507")]
#[derive(Clone, Copy, Eq, PartialEq, Hash)]
#[derive(Eq, PartialEq, Clone, Copy, Hash, Debug)]
pub struct ThreadId(u64);

impl ThreadId {
Expand Down Expand Up @@ -699,13 +699,6 @@ impl ThreadId {
}
}

#[unstable(feature = "thread_id", issue = "21507")]
impl fmt::Debug for ThreadId {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.pad("ThreadId { .. }")
}
}

////////////////////////////////////////////////////////////////////////////////
// Thread
////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit cd14a32

Please sign in to comment.