Use tokio::net::tcp::ConnectFuture directly.

This removes this warning:
```
warning: use of deprecated item 'tokio::net::ConnectFuture': use `tokio::net::tcp::ConnectFuture` instead
```
This commit is contained in:
Emmanuel Gil Peyrot 2018-10-01 12:34:33 +02:00
parent 3c82965581
commit 4ab3890cd3

View file

@ -5,7 +5,8 @@ use std::collections::BTreeMap;
use std::collections::VecDeque;
use std::cell::RefCell;
use futures::{Future, Poll, Async};
use tokio::net::{ConnectFuture, TcpStream};
use tokio::net::TcpStream;
use tokio::net::tcp::ConnectFuture;
use trust_dns_resolver::{IntoName, Name, ResolverFuture, error::ResolveError};
use trust_dns_resolver::lookup::SrvLookupFuture;
use trust_dns_resolver::lookup_ip::LookupIpFuture;