Use derived Debug for ThreadId
This commit is contained in:
parent
2820295266
commit
cd14a323f4
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user