Skip to content

Commit 28f62e0

Browse files
lint
1 parent 9e7b8a9 commit 28f62e0

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

consensus/src/marshal/conformance.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use super::mocks::{
44
application::Application,
55
harness::{
6-
self, CodingHarness, StandardHarness, TestHarness, V, ValidatorHandle, ValidatorSetup,
7-
BLOCKS_PER_EPOCH, NAMESPACE, NUM_VALIDATORS, QUORUM,
6+
self, CodingHarness, StandardHarness, TestHarness, ValidatorHandle, ValidatorSetup,
7+
BLOCKS_PER_EPOCH, NAMESPACE, NUM_VALIDATORS, QUORUM, V,
88
},
99
};
1010
use crate::{
@@ -25,17 +25,17 @@ struct CodingStorageConformance;
2525

2626
impl Conformance for StandardStorageConformance {
2727
async fn commit(seed: u64) -> Vec<u8> {
28-
marshal_commit::<StandardHarness>(seed).await
28+
marshal_commit::<StandardHarness>(seed)
2929
}
3030
}
3131

3232
impl Conformance for CodingStorageConformance {
3333
async fn commit(seed: u64) -> Vec<u8> {
34-
marshal_commit::<CodingHarness>(seed).await
34+
marshal_commit::<CodingHarness>(seed)
3535
}
3636
}
3737

38-
async fn marshal_commit<H: TestHarness>(seed: u64) -> Vec<u8> {
38+
fn marshal_commit<H: TestHarness>(seed: u64) -> Vec<u8> {
3939
let runner = deterministic::Runner::new(
4040
deterministic::Config::default()
4141
.with_seed(seed)
@@ -80,7 +80,9 @@ async fn marshal_commit<H: TestHarness>(seed: u64) -> Vec<u8> {
8080
for height in 1..=count {
8181
let height = Height::new(height);
8282
let round = Round::new(Epoch::zero(), View::new(height.get()));
83-
let parent_view = height.previous().map_or(View::zero(), |h| View::new(h.get()));
83+
let parent_view = height
84+
.previous()
85+
.map_or(View::zero(), |h| View::new(h.get()));
8486
let block = H::make_test_block(
8587
H::digest(&parent),
8688
H::commitment(&parent),

0 commit comments

Comments
 (0)