Skip to content

Commit 717e99c

Browse files
committed
Fix connect example
1 parent 99078c5 commit 717e99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn main() {
5959
// finishes. If we don't have any more data to read or we won't receive any
6060
// more work from the remote then we can exit.
6161
let mut stdout = io::stdout();
62-
let client = tcp.and_then(|(sink, stream)| {
62+
let client = tcp.and_then(|stream| {
6363
let (sink, stream) = stream.framed(Bytes).split();
6464
let send_stdin = stdin_rx.forward(sink);
6565
let write_stdout = stream.for_each(move |buf| {

0 commit comments

Comments
 (0)