From ae627db266600f8d010b6eeb9d1be0fff677f0ce Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 30 Jan 2018 13:01:34 -0800 Subject: Change `net::Incoming` signature to match std. (#89) std's `Incoming` iterator yields `TcpStream` instances. This patch updates the `Incoming` future to match this signature. This changes the yielded value from `(TcpStream, SocketAddr)` -> `TcpStream`. --- examples/tinydb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/tinydb.rs') diff --git a/examples/tinydb.rs b/examples/tinydb.rs index 19a7396d..0a68a314 100644 --- a/examples/tinydb.rs +++ b/examples/tinydb.rs @@ -100,7 +100,7 @@ fn main() { map: Mutex::new(initial_db), }); - let done = listener.incoming().for_each(move |(socket, _addr)| { + let done = listener.incoming().for_each(move |socket| { // As with many other small examples, the first thing we'll do is // *split* this TCP stream into two separately owned halves. This'll // allow us to work with the read and write halves independently. -- cgit v1.2.3