From 56b31960f1e665c9aee69288495f696a2c25379c Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 10 Sep 2018 20:02:55 -0700 Subject: [PATCH] derive Debug for connector/resolver error --- src/connector.rs | 2 +- src/resolver.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector.rs b/src/connector.rs index c9ecdde9..66fc065a 100644 --- a/src/connector.rs +++ b/src/connector.rs @@ -14,7 +14,7 @@ use super::resolver::{HostAware, Resolver, ResolverError, ResolverFuture}; use super::{NewService, Service}; // #[derive(Fail, Debug)] - +#[derive(Debug)] pub enum ConnectorError { /// Failed to resolve the hostname // #[fail(display = "Failed resolving hostname: {}", _0)] diff --git a/src/resolver.rs b/src/resolver.rs index ddd3c62e..0ad3c686 100644 --- a/src/resolver.rs +++ b/src/resolver.rs @@ -13,6 +13,7 @@ use trust_dns_resolver::{AsyncResolver, Background}; use super::Service; +#[derive(Debug)] pub enum ResolverError { Resolve(ResolveError), InvalidInput,