From a1670b054427c38907318b790f6a4ba081ffe7a7 Mon Sep 17 00:00:00 2001 From: Martell Malone Date: Tue, 26 Nov 2019 18:35:48 -0800 Subject: [PATCH] Update tokio to 0.2 removing tokio-net --- actix-http/Cargo.toml | 2 +- actix-http/src/client/connector.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;