mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 12:21:32 +00:00
fix a couple more style grumbles
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user