@@ -648,7 +648,6 @@ fn erroneous_phase(error: &TransportError) -> &'static str {
648648 TransportError :: WireError ( _) => "protocol" ,
649649 TransportError :: TruncatedResponse |
650650 TransportError :: NetworkError ( _) => "network" ,
651- #[ cfg( feature = "with_rustls" ) ]
652651 TransportError :: RustlsInvalidDnsNameError ( _) |
653652 TransportError :: RustlsError ( _) |
654653 TransportError :: RustlsInvalidDnsNameError2 ( _) => "tls" , // TODO: Actually wrong, could be https
@@ -664,11 +663,8 @@ fn error_message(error: TransportError) -> String {
664663 TransportError :: WireError ( e) => wire_error_message ( e) ,
665664 TransportError :: TruncatedResponse => "Truncated response" . into ( ) ,
666665 TransportError :: NetworkError ( e) => e. to_string ( ) ,
667- #[ cfg( any( feature = "with_rustls" ) ) ]
668666 TransportError :: RustlsInvalidDnsNameError ( e) => e. to_string ( ) ,
669- #[ cfg( any( feature = "with_rustls" ) ) ]
670667 TransportError :: RustlsError ( e) => e. to_string ( ) ,
671- #[ cfg( any( feature = "with_rustls" ) ) ]
672668 TransportError :: RustlsInvalidDnsNameError2 ( e) => e. to_string ( ) ,
673669 #[ cfg( feature = "with_https" ) ]
674670 TransportError :: HttpError ( e) => e. to_string ( ) ,
0 commit comments