Merge pull request #131 from tomprince/hide-internal-conversions

Hide internal conversions to `reqwest::Error`.
This commit is contained in:
Sean McArthur
2017-06-01 15:55:07 -07:00
committed by GitHub

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>,