mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-23 03:35:14 +00:00
Remove dead error case
This commit is contained in:
committed by
Dirkjan Ochtman
parent
7fe5b776fc
commit
62909455ea
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user