Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ancazamfir committed Dec 5, 2023
1 parent d31a416 commit 5ed90d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Code/test/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ pub fn prevote_input(addr: &Address, sk: &PrivateKey) -> Input<TestContext> {
}

pub fn prevote_nil_input(addr: &Address, sk: &PrivateKey) -> Input<TestContext> {
Input::Vote(
Vote::new_prevote(Height::new(1), Round::new(0), None, *addr).signed(sk),
)
Input::Vote(Vote::new_prevote(Height::new(1), Round::new(0), None, *addr).signed(sk))
}

pub fn prevote_input_at(round: Round, addr: &Address, sk: &PrivateKey) -> Input<TestContext> {
Expand All @@ -132,7 +130,11 @@ pub fn precommit_output(
))
}

pub fn precommit_nil_output(round: Round, addr: &Address, sk: &PrivateKey) -> Option<Output<TestContext>> {
pub fn precommit_nil_output(
round: Round,
addr: &Address,
sk: &PrivateKey,
) -> Option<Output<TestContext>> {
Some(Output::Vote(
Vote::new_precommit(Height::new(1), round, None, *addr).signed(sk),
))
Expand Down
2 changes: 0 additions & 2 deletions Code/test/tests/driver_extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ fn driver_steps_polka_previous_with_locked() {
run_steps(&mut driver, steps)
}


// Arrive at L36 in round 0, with step precommit and then L28 in round 1 with invalid value.
//
// Ev: NewRound(0) Timeout(propose) <polka> <honest precommit(round=1)>
Expand Down Expand Up @@ -670,7 +669,6 @@ fn driver_steps_polka_previous_with_no_locked() {
// + L44 - polkaNil is replayed and v3 precommits for nil (step precommit)
#[test]
fn driver_steps_polka_nil_and_timout_propose() {

let [(v1, sk1), (v2, sk2), (v3, sk3)] = make_validators([2, 3, 2]);
let (my_sk, my_addr) = (sk3.clone(), v3.address);

Expand Down

0 comments on commit 5ed90d3

Please sign in to comment.