@@ -89,9 +89,6 @@ pub enum ErrorKind {
8989 InvalidMimeType ( String ) ,
9090 /// TLS was not enabled by features.
9191 TlsDisabled ,
92- /// WebPKI error.
93- #[ cfg( feature = "__rustls" ) ]
94- WebPKI ( webpki:: Error ) ,
9592}
9693
9794/// A type that contains all the errors that can possibly occur while accessing an HTTP server.
@@ -135,8 +132,6 @@ impl Display for Error {
135132 InvalidDNSName ( ref e) => write ! ( w, "Invalid DNS name: {e}" ) ,
136133 InvalidMimeType ( ref e) => write ! ( w, "Invalid mime type: {e}" ) ,
137134 TlsDisabled => write ! ( w, "TLS is disabled, activate one of the tls- features" ) ,
138- #[ cfg( feature = "__rustls" ) ]
139- WebPKI ( ref e) => write ! ( w, "WebPKI error: {e}" ) ,
140135 }
141136 }
142137}
@@ -152,8 +147,6 @@ impl StdError for Error {
152147 Json ( ref e) => Some ( e) ,
153148 #[ cfg( any( feature = "tls-native" , feature = "__rustls" ) ) ]
154149 Tls ( ref e) => Some ( e) ,
155- #[ cfg( feature = "__rustls" ) ]
156- WebPKI ( ref e) => Some ( e) ,
157150 _ => None ,
158151 }
159152 }
@@ -235,12 +228,5 @@ impl From<InvalidResponseKind> for io::Error {
235228 }
236229}
237230
238- #[ cfg( feature = "__rustls" ) ]
239- impl From < webpki:: Error > for Error {
240- fn from ( err : webpki:: Error ) -> Error {
241- Error ( Box :: new ( ErrorKind :: WebPKI ( err) ) )
242- }
243- }
244-
245231/// Wrapper for the `Result` type with an `Error`.
246232pub type Result < T = ( ) > = result:: Result < T , Error > ;
0 commit comments