small cleanup + doc

This commit is contained in:
DarkCat09 2024-08-20 10:45:08 +04:00
parent e77b785fa0
commit 2feb039c11
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -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<rustls::ClientConfig> 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 {