diff --git a/crates/resolver/src/name_server/connection_provider.rs b/crates/resolver/src/name_server/connection_provider.rs index 9430d73ce7..178c65bc73 100644 --- a/crates/resolver/src/name_server/connection_provider.rs +++ b/crates/resolver/src/name_server/connection_provider.rs @@ -208,7 +208,8 @@ where #[cfg(feature = "dns-over-tls")] /// Predefined type for TLS client stream -type TlsClientStream = TcpClientStream>>>; +type TlsClientStream = + TcpClientStream>>>; /// The variants of all supported connections for the Resolver #[allow(clippy::large_enum_variant, clippy::type_complexity)] diff --git a/tests/integration-tests/tests/server_future_tests.rs b/tests/integration-tests/tests/server_future_tests.rs index d459016ce6..50e84bd77a 100644 --- a/tests/integration-tests/tests/server_future_tests.rs +++ b/tests/integration-tests/tests/server_future_tests.rs @@ -7,7 +7,6 @@ use std::time::Duration; use futures::{future, Future, FutureExt}; use tokio::net::TcpListener; -use tokio::net::TcpStream as TokioTcpStream; use tokio::net::UdpSocket; use tokio::runtime::Runtime; @@ -16,8 +15,8 @@ use trust_dns_client::op::*; use trust_dns_client::rr::*; use trust_dns_client::tcp::TcpClientConnection; use trust_dns_client::udp::UdpClientConnection; +use trust_dns_proto::error::ProtoError; use trust_dns_proto::xfer::DnsRequestSender; -use trust_dns_proto::{error::ProtoError, iocompat::AsyncIoTokioAsStd}; use trust_dns_server::authority::{Authority, Catalog}; use trust_dns_server::ServerFuture; @@ -199,7 +198,7 @@ fn lazy_tls_client( ipaddr: SocketAddr, dns_name: String, cert_der: Vec, -) -> TlsClientConnection> { +) -> TlsClientConnection> { use rustls::{Certificate, ClientConfig}; let trust_chain = Certificate(cert_der);