Remove dead error case

This commit is contained in:
Benjamin Saunders
2019-06-11 21:35:46 -07:00
committed by Dirkjan Ochtman
parent 7fe5b776fc
commit 62909455ea
-9
View File
@@ -747,20 +747,11 @@ pub enum ConnectError {
/// The domain name supplied was malformed
#[error(display = "invalid DNS name: {}", _0)]
InvalidDnsName(String),
/// The TLS configuration was invalid
#[error(display = "TLS error: {}", _0)]
Tls(crypto::rustls::TLSError),
/// The transport configuration was invalid
#[error(display = "transport configuration error: {}", _0)]
Config(ConfigError),
}
impl From<crypto::rustls::TLSError> for ConnectError {
fn from(x: crypto::rustls::TLSError) -> Self {
ConnectError::Tls(x)
}
}
impl From<ConfigError> for ConnectError {
fn from(x: ConfigError) -> Self {
ConnectError::Config(x)