1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00
This commit is contained in:
Rob Ede
2022-02-08 08:00:47 +00:00
parent 0c144054cb
commit 3d621677a5
6 changed files with 18 additions and 14 deletions

View File

@ -337,7 +337,7 @@ where
match self.get_mut() {
Connection::Tcp(ConnectionType::H1(conn)) => Pin::new(conn).poll_write(cx, buf),
Connection::Tls(ConnectionType::H1(conn)) => Pin::new(conn).poll_write(cx, buf),
_ => unreachable!(H2_UNREACHABLE_WRITE),
_ => unreachable!("{}", H2_UNREACHABLE_WRITE),
}
}
@ -345,7 +345,7 @@ where
match self.get_mut() {
Connection::Tcp(ConnectionType::H1(conn)) => Pin::new(conn).poll_flush(cx),
Connection::Tls(ConnectionType::H1(conn)) => Pin::new(conn).poll_flush(cx),
_ => unreachable!(H2_UNREACHABLE_WRITE),
_ => unreachable!("{}", H2_UNREACHABLE_WRITE),
}
}
@ -353,7 +353,7 @@ where
match self.get_mut() {
Connection::Tcp(ConnectionType::H1(conn)) => Pin::new(conn).poll_shutdown(cx),
Connection::Tls(ConnectionType::H1(conn)) => Pin::new(conn).poll_shutdown(cx),
_ => unreachable!(H2_UNREACHABLE_WRITE),
_ => unreachable!("{}", H2_UNREACHABLE_WRITE),
}
}
@ -369,7 +369,7 @@ where
Connection::Tls(ConnectionType::H1(conn)) => {
Pin::new(conn).poll_write_vectored(cx, bufs)
}
_ => unreachable!(H2_UNREACHABLE_WRITE),
_ => unreachable!("{}", H2_UNREACHABLE_WRITE),
}
}
@ -377,7 +377,7 @@ where
match *self {
Connection::Tcp(ConnectionType::H1(ref conn)) => conn.is_write_vectored(),
Connection::Tls(ConnectionType::H1(ref conn)) => conn.is_write_vectored(),
_ => unreachable!(H2_UNREACHABLE_WRITE),
_ => unreachable!("{}", H2_UNREACHABLE_WRITE),
}
}
}