Hide internal conversions to reqwest::Error.

This commit is contained in:
Tom Prince
2017-05-31 23:01:04 -06:00
parent ae8525754a
commit 83c71d4465

View File

@@ -152,6 +152,7 @@ impl From<::hyper_native_tls::native_tls::Error> for Kind {
pub struct InternalFrom<T>(pub T, pub Option<Url>);
#[doc(hidden)] // https://github.com/rust-lang/rust/issues/42323
impl From<InternalFrom<Error>> for Error {
#[inline]
fn from(other: InternalFrom<Error>) -> Error {
@@ -159,6 +160,7 @@ impl From<InternalFrom<Error>> for Error {
}
}
#[doc(hidden)] // https://github.com/rust-lang/rust/issues/42323
impl<T> From<InternalFrom<T>> for Error
where
T: Into<Kind>,