From aebeb511cd3a1c0e1ae7217214c13ce42ec983f5 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 29 Mar 2019 14:26:11 -0700 Subject: [PATCH] explicit impl traits for ws connect --- awc/src/ws.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/awc/src/ws.rs b/awc/src/ws.rs index 9697210d..ae281737 100644 --- a/awc/src/ws.rs +++ b/awc/src/ws.rs @@ -3,7 +3,7 @@ use std::io::Write; use std::rc::Rc; use std::{fmt, str}; -use actix_codec::Framed; +use actix_codec::{AsyncRead, AsyncWrite, Framed}; use actix_http::{ws, Payload, RequestHead}; use bytes::{BufMut, BytesMut}; #[cfg(feature = "cookies")] @@ -13,7 +13,6 @@ use tokio_timer::Timeout; pub use actix_http::ws::{CloseCode, CloseReason, Frame, Message}; -use crate::connect::BoxedSocket; use crate::error::{InvalidUrl, SendRequestError, WsClientError}; use crate::http::header::{ self, HeaderName, HeaderValue, IntoHeaderValue, AUTHORIZATION, @@ -214,7 +213,10 @@ impl WebsocketsRequest { pub fn connect( mut self, ) -> impl Future< - Item = (ClientResponse, Framed), + Item = ( + ClientResponse, + Framed, + ), Error = WsClientError, > { if let Some(e) = self.err.take() {