summaryrefslogtreecommitdiffstats
path: root/examples/connect.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-12-20 18:39:44 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-12-20 18:39:44 -0800
commit717e99ca80ae57820f4dbe7574421afd28d9f1d9 (patch)
tree263966edbbcf8401a78ddf0137d2527eee04bd99 /examples/connect.rs
parent99078c5cc152af007922901384e0fe7bb0b57184 (diff)
Fix connect example
Diffstat (limited to 'examples/connect.rs')
-rw-r--r--examples/connect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/connect.rs b/examples/connect.rs
index eeaba217..9ee8c51a 100644
--- a/examples/connect.rs
+++ b/examples/connect.rs
@@ -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| {