mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-21 00:00:10 +02:00
net: remove PollEvented noise from Debug formats (#7675)
This commit is contained in:
@@ -401,7 +401,7 @@ impl TryFrom<net::TcpListener> for TcpListener {
|
||||
|
||||
impl fmt::Debug for TcpListener {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.io.fmt(f)
|
||||
(*self.io).fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1458,7 +1458,8 @@ impl AsyncWrite for TcpStream {
|
||||
|
||||
impl fmt::Debug for TcpStream {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.io.fmt(f)
|
||||
// skip PollEvented noise
|
||||
(*self.io).fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1604,7 +1604,7 @@ impl TryFrom<std::os::unix::net::UnixDatagram> for UnixDatagram {
|
||||
|
||||
impl fmt::Debug for UnixDatagram {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.io.fmt(f)
|
||||
(*self.io).fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ impl TryFrom<std::os::unix::net::UnixListener> for UnixListener {
|
||||
|
||||
impl fmt::Debug for UnixListener {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.io.fmt(f)
|
||||
(*self.io).fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1072,7 +1072,7 @@ impl UnixStream {
|
||||
|
||||
impl fmt::Debug for UnixStream {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.io.fmt(f)
|
||||
(*self.io).fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user