1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-30 21:04:35 +01:00

derive Debug for connector/resolver error

This commit is contained in:
Nikolay Kim 2018-09-10 20:02:55 -07:00
parent d8ed9ae43a
commit 56b31960f1
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ use super::resolver::{HostAware, Resolver, ResolverError, ResolverFuture};
use super::{NewService, Service}; use super::{NewService, Service};
// #[derive(Fail, Debug)] // #[derive(Fail, Debug)]
#[derive(Debug)]
pub enum ConnectorError { pub enum ConnectorError {
/// Failed to resolve the hostname /// Failed to resolve the hostname
// #[fail(display = "Failed resolving hostname: {}", _0)] // #[fail(display = "Failed resolving hostname: {}", _0)]

View File

@ -13,6 +13,7 @@ use trust_dns_resolver::{AsyncResolver, Background};
use super::Service; use super::Service;
#[derive(Debug)]
pub enum ResolverError { pub enum ResolverError {
Resolve(ResolveError), Resolve(ResolveError),
InvalidInput, InvalidInput,