From 475486a0a1c2245f7b0d282a0872ac8f6a0f0c8a Mon Sep 17 00:00:00 2001 From: Markus Kohlhase Date: Wed, 20 Jun 2018 18:12:38 +0200 Subject: [PATCH] fix tokio import --- src/connect.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connect.rs b/src/connect.rs index 0aab23e..4727019 100644 --- a/src/connect.rs +++ b/src/connect.rs @@ -70,7 +70,7 @@ mod encryption { #[cfg(not(feature="tls"))] mod encryption { use futures::{future, Future}; - use tokio_io::{AsyncRead, AsyncWrite}; + use tokio::io::{AsyncRead, AsyncWrite}; use tungstenite::Error; use tungstenite::stream::Mode; @@ -78,9 +78,9 @@ mod encryption { pub type AutoStream = S; pub fn wrap_stream(socket: S, _domain: String, mode: Mode) - -> Box, Error=Error>> + -> Box, Error=Error> + Send> where - S: 'static + AsyncRead + AsyncWrite, + S: 'static + AsyncRead + AsyncWrite + Send, { match mode { Mode::Plain => Box::new(future::ok(socket)),