small cleanup + doc
This commit is contained in:
parent
e77b785fa0
commit
2feb039c11
1 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue