summaryrefslogtreecommitdiffstats
path: root/src/network/dns
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/dns')
-rw-r--r--src/network/dns/client.rs2
-rw-r--r--src/network/dns/resolver.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/dns/client.rs b/src/network/dns/client.rs
index b6796b4..f9d12ed 100644
--- a/src/network/dns/client.rs
+++ b/src/network/dns/client.rs
@@ -24,7 +24,7 @@ pub struct Client {
impl Client {
pub fn new<R>(resolver: R, mut runtime: Runtime) -> Result<Self, failure::Error>
where
- R: Lookup + Send + Sync + 'static
+ R: Lookup + Send + Sync + 'static,
{
let cache = Arc::new(Mutex::new(IpTable::new()));
let pending = Arc::new(Mutex::new(PendingAddrs::new()));
diff --git a/src/network/dns/resolver.rs b/src/network/dns/resolver.rs
index 87e9a2c..d802a26 100644
--- a/src/network/dns/resolver.rs
+++ b/src/network/dns/resolver.rs
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use std::net::Ipv4Addr;
-use trust_dns_resolver::{error::ResolveErrorKind, AsyncResolver, TokioAsyncResolver};
use tokio::runtime::Handle;
+use trust_dns_resolver::{error::ResolveErrorKind, AsyncResolver, TokioAsyncResolver};
#[async_trait]
pub trait Lookup {