Tweak Debug output of PollEvented

This commit is contained in:
Alex Crichton
2017-02-25 21:43:54 -08:00
parent 005994cdea
commit b773d55444
+3 -1
View File
@@ -46,7 +46,9 @@ pub struct PollEvented<E> {
impl<E: mio::Evented + fmt::Debug> fmt::Debug for PollEvented<E> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{{PollEvented {:?}}}", self.io)
f.debug_struct("PollEvented")
.field("io", &self.io)
.finish()
}
}