Skip to content

Commit bfaa9c5

Browse files
committed
Import HashMap visibly in the tutorial
Fixes #101
1 parent 5c17185 commit bfaa9c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/src/tutorial/connecting_readers_and_writers.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ The order of events "Bob sends message to Alice" and "Alice joins" is determined
2121
# };
2222
# use futures::channel::mpsc;
2323
# use futures::SinkExt;
24-
# use std::{
25-
# collections::hash_map::{Entry, HashMap},
26-
# sync::Arc,
27-
# };
24+
# use std::sync::Arc;
2825
#
2926
# type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
3027
# type Sender<T> = mpsc::UnboundedSender<T>;
@@ -52,6 +49,8 @@ The order of events "Bob sends message to Alice" and "Alice joins" is determined
5249
# })
5350
# }
5451
#
52+
use std::collections::hash_map::{Entry, HashMap};
53+
5554
#[derive(Debug)]
5655
enum Event { // 1
5756
NewPeer {

0 commit comments

Comments
 (0)