Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyuhui committed Feb 3, 2021
1 parent 9198206 commit f6b5091
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration-tests/tests/server_future_tests.rs
Expand Up @@ -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;

Expand All @@ -17,7 +16,7 @@ use trust_dns_client::rr::*;
use trust_dns_client::tcp::TcpClientConnection;
use trust_dns_client::udp::UdpClientConnection;
use trust_dns_proto::xfer::DnsRequestSender;
use trust_dns_proto::{error::ProtoError, iocompat::AsyncIoTokioAsStd};
use trust_dns_proto::error::ProtoError;

use trust_dns_server::authority::{Authority, Catalog};
use trust_dns_server::ServerFuture;
Expand Down Expand Up @@ -199,7 +198,7 @@ fn lazy_tls_client(
ipaddr: SocketAddr,
dns_name: String,
cert_der: Vec<u8>,
) -> TlsClientConnection<AsyncIoTokioAsStd<TokioTcpStream>> {
) -> TlsClientConnection<trust_dns_proto::iocompat::AsyncIoTokioAsStd<tokio::net::TcpStream>> {
use rustls::{Certificate, ClientConfig};

let trust_chain = Certificate(cert_der);
Expand Down

0 comments on commit f6b5091

Please sign in to comment.