Use derived Debug for ThreadId

This commit is contained in:
Stephen M. Coakley 2017-04-04 10:44:57 -05:00
parent 2820295266
commit cd14a323f4
No known key found for this signature in database
GPG Key ID: 91B59C18494C4FC0

View File

@ -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 {
@ -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
////////////////////////////////////////////////////////////////////////////////