diff --git a/actix-http/Cargo.toml b/actix-http/Cargo.toml index 08fabc18c..915d859d6 100644 --- a/actix-http/Cargo.toml +++ b/actix-http/Cargo.toml @@ -84,7 +84,7 @@ slab = "0.4" serde_urlencoded = "0.6.1" time = "0.1.42" -tokio-net = "=0.2.0-alpha.6" +tokio = { version = "0.2", features = ["net"] } trust-dns-resolver = { version="0.18.0-alpha.1", default-features = false } # for secure cookie diff --git a/actix-http/src/client/connector.rs b/actix-http/src/client/connector.rs index eaa3d97e4..170ba14c5 100644 --- a/actix-http/src/client/connector.rs +++ b/actix-http/src/client/connector.rs @@ -9,7 +9,7 @@ use actix_connect::{ use actix_service::{apply_fn, Service}; use actix_utils::timeout::{TimeoutError, TimeoutService}; use http::Uri; -use tokio_net::tcp::TcpStream; +use tokio::net::TcpStream; use super::connection::Connection; use super::error::ConnectError;