From f782187e36be19eeb7bc4c8c4fa7295ff2b1227d Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Tue, 23 Aug 2016 22:42:31 +0300 Subject: [PATCH] SendFrame only requires Write Whole TransportStream is not needed. --- src/http/transport.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/transport.rs b/src/http/transport.rs index 61962295..7774c6be 100644 --- a/src/http/transport.rs +++ b/src/http/transport.rs @@ -80,7 +80,7 @@ impl TransportStream for TcpStream { } impl SendFrame for T - where T: TransportStream + where T: Write { fn send_frame(&mut self, frame: F) -> HttpResult<()> { let mut buf = io::Cursor::new(Vec::with_capacity(1024));