Import HashMap visibly in the tutorial

Fixes #101
pull/112/head
Florian Gilcher 5 years ago
parent 5c17185464
commit bfaa9c510c
No known key found for this signature in database
GPG Key ID: E7B51D33F8EBF61B

@ -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<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
# type Sender<T> = mpsc::UnboundedSender<T>;
@ -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 {

Loading…
Cancel
Save