Chore/semi colons (#799)

* Add helpers for easier Transports creation (#777)

* Add helpers for easier Transports creation

* Fix doctests

* Fix ' ;' occurrences
This commit is contained in:
James Ray
2018-12-19 22:22:39 +00:00
committed by Toralf Wittner
parent 83320e0347
commit f541df391a
9 changed files with 18 additions and 18 deletions

View File

@ -184,9 +184,9 @@ where TMuxer: muxing::StreamMuxer + Send + Sync + 'static,
// Here is a tricky part: we need to get back the muxer in order to return
// it, but it is in an `Arc`.
let unwrapped = Arc::try_unwrap(muxer).unwrap_or_else(|_| {
panic!("we clone the Arc only to put it into substreams ; once in the \
Finishing state, no substream or upgrade exists anymore ; \
therefore there exists only one instance of the Arc; QED")
panic!("We clone the Arc only to put it into substreams. Once in the \
Finishing state, no substream or upgrade exists anymore. \
Therefore, there exists only one instance of the Arc. QED")
});
// We leave `Poisoned` as the state when returning.

View File

@ -107,7 +107,7 @@ where
}
EitherOutput::First(sender) => {
let observed = self.observed_addresses.get(&peer_id)
.expect("We only receive events from nodes we're connected to ; we insert \
.expect("We only receive events from nodes we're connected to. We insert \
into the hashmap when we connect to a node and remove only when we \
disconnect; QED");
self.to_answer.push((sender, observed.clone()));