Fix connect example

This commit is contained in:
Alex Crichton 2016-12-20 18:39:44 -08:00
parent 99078c5cc1
commit 717e99ca80

View File

@ -59,7 +59,7 @@ fn main() {
// finishes. If we don't have any more data to read or we won't receive any
// more work from the remote then we can exit.
let mut stdout = io::stdout();
let client = tcp.and_then(|(sink, stream)| {
let client = tcp.and_then(|stream| {
let (sink, stream) = stream.framed(Bytes).split();
let send_stdin = stdin_rx.forward(sink);
let write_stdout = stream.for_each(move |buf| {