Remove public Error constructor from io::Error (#420)

This commit is contained in:
Sean McArthur
2019-10-07 15:29:38 -07:00
committed by GitHub
parent 4c1d797712
commit 3cfcab016e
3 changed files with 15 additions and 17 deletions

View File

@@ -1136,7 +1136,7 @@ where
log::debug!("binding client connection");
let msg: &'static [u8] = b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
io.write_all(msg).await?;
io.write_all(msg).await.map_err(crate::Error::from_io)?;
log::debug!("client connection bound");