diff --git a/src/client/mod.rs b/src/client/mod.rs index d6fe5be..f431188 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -7,16 +7,14 @@ pub use response::Response; #[cfg(feature = "hickory")] use crate::dns::DnsClient; - #[cfg(feature = "hickory")] use hickory_client::rr::IntoName; +#[cfg(feature = "hickory")] +use std::net::SocketAddr; use crate::{error::*, status::*}; use builder::ClientBuilder; -#[cfg(feature = "hickory")] -use std::net::SocketAddr; - use std::sync::Arc; use tokio::{ @@ -49,6 +47,8 @@ impl From for Client { #[cfg(feature = "hickory")] impl From<(rustls::ClientConfig, DnsClient)> for Client { + /// Create a Client from a Rustls config and + /// a DnsClient instance as a custom resolver. #[inline] fn from(value: (rustls::ClientConfig, DnsClient)) -> Self { Client {