Skip to content

Commit cd14a32

Browse files
committed
Use derived Debug for ThreadId
1 parent 2820295 commit cd14a32

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/libstd/thread/mod.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ pub fn park_timeout(dur: Duration) {
670670
/// assert!(thread::current().id() != other_thread_id);
671671
/// ```
672672
#[unstable(feature = "thread_id", issue = "21507")]
673-
#[derive(Clone, Copy, Eq, PartialEq, Hash)]
673+
#[derive(Eq, PartialEq, Clone, Copy, Hash, Debug)]
674674
pub struct ThreadId(u64);
675675

676676
impl ThreadId {
@@ -699,13 +699,6 @@ impl ThreadId {
699699
}
700700
}
701701

702-
#[unstable(feature = "thread_id", issue = "21507")]
703-
impl fmt::Debug for ThreadId {
704-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
705-
f.pad("ThreadId { .. }")
706-
}
707-
}
708-
709702
////////////////////////////////////////////////////////////////////////////////
710703
// Thread
711704
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)