From bfaa9c510cfb18df3c6010c42d30d7ec4f7abcd0 Mon Sep 17 00:00:00 2001 From: Florian Gilcher Date: Mon, 26 Aug 2019 14:33:11 -0700 Subject: [PATCH] Import HashMap visibly in the tutorial Fixes #101 --- docs/src/tutorial/connecting_readers_and_writers.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/src/tutorial/connecting_readers_and_writers.md b/docs/src/tutorial/connecting_readers_and_writers.md index 7aba3a13..31631f88 100644 --- a/docs/src/tutorial/connecting_readers_and_writers.md +++ b/docs/src/tutorial/connecting_readers_and_writers.md @@ -21,10 +21,7 @@ The order of events "Bob sends message to Alice" and "Alice joins" is determined # }; # use futures::channel::mpsc; # use futures::SinkExt; -# use std::{ -# collections::hash_map::{Entry, HashMap}, -# sync::Arc, -# }; +# use std::sync::Arc; # # type Result = std::result::Result>; # type Sender = mpsc::UnboundedSender; @@ -52,6 +49,8 @@ The order of events "Bob sends message to Alice" and "Alice joins" is determined # }) # } # +use std::collections::hash_map::{Entry, HashMap}; + #[derive(Debug)] enum Event { // 1 NewPeer {