mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 16:52:58 +01:00
derive Debug for connector/resolver error
This commit is contained in:
parent
d8ed9ae43a
commit
56b31960f1
@ -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)]
|
||||
|
@ -13,6 +13,7 @@ use trust_dns_resolver::{AsyncResolver, Background};
|
||||
|
||||
use super::Service;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum ResolverError {
|
||||
Resolve(ResolveError),
|
||||
InvalidInput,
|
||||
|
Loading…
Reference in New Issue
Block a user