Run rustfmt

This commit is contained in:
pawanjay176 2019-05-08 04:07:47 +05:30
parent 3e45d13410
commit a37be5d8d1
1 changed files with 10 additions and 7 deletions

View File

@ -523,13 +523,16 @@ impl<N: NodeIdT> Broadcast<N> {
.netinfo
.all_ids()
.map(|id| {
self.echos.get(id).and_then(EchoContent::proof).and_then(|p| {
if p.root_hash() == hash {
Some(p.value().clone().into_boxed_slice())
} else {
None
}
})
self.echos
.get(id)
.and_then(EchoContent::proof)
.and_then(|p| {
if p.root_hash() == hash {
Some(p.value().clone().into_boxed_slice())
} else {
None
}
})
})
.collect();
if let Some(value) = self.decode_from_shards(&mut leaf_values, hash) {