happy_eyeballs: migrate to newer trust-dns dependencies

This commit is contained in:
Astro 2019-01-17 01:24:26 +01:00
commit 59f433fd21
3 changed files with 34 additions and 36 deletions

View file

@ -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)
}
}