From 4ab3890cd30b5bd5279a7e22b5546dc437afcb54 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 1 Oct 2018 12:34:33 +0200 Subject: [PATCH] Use tokio::net::tcp::ConnectFuture directly. This removes this warning: ``` warning: use of deprecated item 'tokio::net::ConnectFuture': use `tokio::net::tcp::ConnectFuture` instead ``` --- src/happy_eyeballs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/happy_eyeballs.rs b/src/happy_eyeballs.rs index 6d201fd..6e7f027 100644 --- a/src/happy_eyeballs.rs +++ b/src/happy_eyeballs.rs @@ -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;