From 2feb039c114d7537f0abeb062e1e6762868f512a Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 20 Aug 2024 10:45:08 +0400 Subject: [PATCH] small cleanup + doc --- src/client/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {