fix a couple more style grumbles

This commit is contained in:
Robert Habermeier
2017-12-31 20:10:37 +01:00
parent b44e8fd781
commit e0b7e77f2c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -492,11 +492,11 @@ impl<C: Context> Strategy<C> {
Some(_) => {
// don't check validity if we are locked.
// this is necessary to preserve the liveness property.
prepare_for = Some(digest)
prepare_for = Some(digest);
}
None => if context.candidate_valid(candidate) {
prepare_for = Some(digest);
},
}
}
}
@@ -64,7 +64,7 @@ impl SharedContext {
fn round_timeout(&mut self, round: usize) -> Box<Future<Item=(),Error=Error>> {
let (tx, rx) = oneshot::channel();
if round < self.current_round {
tx.send(()).unwrap()
tx.send(()).unwrap();
} else {
self.awaiting_round_timeouts
.entry(round)