1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 10:02:38 +01:00

map connector timeout error

This commit is contained in:
Nikolay Kim 2018-03-07 12:09:53 -08:00
parent b950d6997d
commit c26d9545a5

View File

@ -92,7 +92,10 @@ pub enum ClientConnectorError {
impl From<ConnectorError> for ClientConnectorError { impl From<ConnectorError> for ClientConnectorError {
fn from(err: ConnectorError) -> ClientConnectorError { fn from(err: ConnectorError) -> ClientConnectorError {
ClientConnectorError::Connector(err) match err {
ConnectorError::Timeout => ClientConnectorError::Timeout,
_ => ClientConnectorError::Connector(err)
}
} }
} }