net: remove PollEvented noise from Debug formats (#7675)

This commit is contained in:
Sean McArthur
2025-10-13 21:02:37 +00:00
committed by GitHub
parent c1fa25f300
commit 25a24de0e6
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -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)
}
}
+2 -1
View File
@@ -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)
}
}
+1 -1
View File
@@ -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)
}
}
+1 -1
View File
@@ -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)
}
}
+1 -1
View File
@@ -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)
}
}