summaryrefslogtreecommitdiffstats
path: root/examples/tinydb.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2018-01-30 13:01:34 -0800
committerAlex Crichton <alex@alexcrichton.com>2018-01-30 15:01:34 -0600
commitae627db266600f8d010b6eeb9d1be0fff677f0ce (patch)
treee9c020593a2e63a20ba39a5c426e42e69a8920fd /examples/tinydb.rs
parentf4ec9a6360c5e2d3066dc5b278f116c8febe701c (diff)
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`.
Diffstat (limited to 'examples/tinydb.rs')
-rw-r--r--examples/tinydb.rs2
1 files changed, 1 insertions, 1 deletions
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.