Add a conversion from native_tls::Error.

This commit is contained in:
Tom Prince
2017-05-31 19:27:45 -06:00
parent 8d784faa98
commit a36ed4a87a
2 changed files with 11 additions and 20 deletions

View File

@@ -143,6 +143,13 @@ impl From<::serde_json::Error> for Kind {
}
}
impl From<::hyper_native_tls::native_tls::Error> for Kind {
fn from(other: ::hyper_native_tls::native_tls::Error) -> Kind {
::hyper::Error::Ssl(Box::new(other)).into()
}
}
pub struct InternalFrom<T>(pub T, pub Option<Url>);
impl From<InternalFrom<Error>> for Error {