From 5ed90d3defaffcaa4cbb53846aac98bc6aa133c7 Mon Sep 17 00:00:00 2001 From: Anca Zamfir Date: Tue, 5 Dec 2023 22:53:18 +0100 Subject: [PATCH] Cargo fmt --- Code/test/src/utils.rs | 10 ++++++---- Code/test/tests/driver_extra.rs | 2 -- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Code/test/src/utils.rs b/Code/test/src/utils.rs index aae489874..a77367496 100644 --- a/Code/test/src/utils.rs +++ b/Code/test/src/utils.rs @@ -110,9 +110,7 @@ pub fn prevote_input(addr: &Address, sk: &PrivateKey) -> Input { } pub fn prevote_nil_input(addr: &Address, sk: &PrivateKey) -> Input { - 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 { @@ -132,7 +130,11 @@ pub fn precommit_output( )) } -pub fn precommit_nil_output(round: Round, addr: &Address, sk: &PrivateKey) -> Option> { +pub fn precommit_nil_output( + round: Round, + addr: &Address, + sk: &PrivateKey, +) -> Option> { Some(Output::Vote( Vote::new_precommit(Height::new(1), round, None, *addr).signed(sk), )) diff --git a/Code/test/tests/driver_extra.rs b/Code/test/tests/driver_extra.rs index f23c514bc..3418763dd 100644 --- a/Code/test/tests/driver_extra.rs +++ b/Code/test/tests/driver_extra.rs @@ -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) @@ -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);