happy_eyeballs: migrate to newer trust-dns dependencies
This commit is contained in:
parent
c015b3f776
commit
59f433fd21
3 changed files with 34 additions and 36 deletions
10
src/error.rs
10
src/error.rs
|
|
@ -107,7 +107,7 @@ pub enum AuthError {
|
|||
}
|
||||
|
||||
/// Error establishing connection
|
||||
#[derive(Debug, Error)]
|
||||
#[derive(Debug)]
|
||||
pub enum ConnecterError {
|
||||
/// All attempts failed, no error available
|
||||
AllFailed,
|
||||
|
|
@ -116,3 +116,11 @@ pub enum ConnecterError {
|
|||
/// DNS resolution error
|
||||
Resolve(ResolveError),
|
||||
}
|
||||
|
||||
impl std::error::Error for ConnecterError {}
|
||||
|
||||
impl std::fmt::Display for ConnecterError {
|
||||
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
|
||||
write!(fmt, "{:?}", self)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue