Skip to content

Commit 422429f

Browse files
committed
Run cargo fmt
1 parent 48209a2 commit 422429f

File tree

5 files changed

+12
-22
lines changed

5 files changed

+12
-22
lines changed

testnet/stacks-node/src/tests/signer/commands/block_commit.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ impl Command<SignerTestState, SignerTestContext> for SubmitBlockCommitSecondaryM
4040
fn build(
4141
ctx: Arc<SignerTestContext>,
4242
) -> impl Strategy<Value = CommandWrapper<SignerTestState, SignerTestContext>> {
43-
Just(CommandWrapper::new(
44-
SubmitBlockCommitSecondaryMiner::new(ctx.miners.clone()),
45-
))
43+
Just(CommandWrapper::new(SubmitBlockCommitSecondaryMiner::new(
44+
ctx.miners.clone(),
45+
)))
4646
}
4747
}
4848

@@ -82,8 +82,8 @@ impl Command<SignerTestState, SignerTestContext> for SubmitBlockCommitPrimaryMin
8282
fn build(
8383
ctx: Arc<SignerTestContext>,
8484
) -> impl Strategy<Value = CommandWrapper<SignerTestState, SignerTestContext>> {
85-
Just(CommandWrapper::new(
86-
SubmitBlockCommitPrimaryMiner::new(ctx.miners.clone()),
87-
))
85+
Just(CommandWrapper::new(SubmitBlockCommitPrimaryMiner::new(
86+
ctx.miners.clone(),
87+
)))
8888
}
8989
}

testnet/stacks-node/src/tests/signer/commands/mining.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ impl MineBitcoinBlockTenureChangePrimaryMiner {
1818
}
1919
}
2020

21-
impl Command<SignerTestState, SignerTestContext>
22-
for MineBitcoinBlockTenureChangePrimaryMiner
23-
{
21+
impl Command<SignerTestState, SignerTestContext> for MineBitcoinBlockTenureChangePrimaryMiner {
2422
fn check(&self, state: &SignerTestState) -> bool {
2523
info!(
2624
"Checking: Miner 1 mining Bitcoin block and tenure change tx. Result: {:?}",
@@ -92,9 +90,7 @@ impl MineBitcoinBlockTenureChangeSecondaryMiner {
9290
}
9391
}
9492

95-
impl Command<SignerTestState, SignerTestContext>
96-
for MineBitcoinBlockTenureChangeSecondaryMiner
97-
{
93+
impl Command<SignerTestState, SignerTestContext> for MineBitcoinBlockTenureChangeSecondaryMiner {
9894
fn check(&self, state: &SignerTestState) -> bool {
9995
info!(
10096
"Checking: Miner 2 mining Bitcoin block and tenure change tx. Result: {:?}",

testnet/stacks-node/src/tests/signer/commands/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ mod shutdown;
99
mod stalling;
1010
mod transfer;
1111

12-
pub use context::{SignerTestContext};
12+
pub use context::SignerTestContext;
1313

14-
pub use block_commit::{
15-
SubmitBlockCommitPrimaryMiner, SubmitBlockCommitSecondaryMiner,
16-
};
14+
pub use block_commit::{SubmitBlockCommitPrimaryMiner, SubmitBlockCommitSecondaryMiner};
1715
pub use block_wait::{WaitForBlockFromMiner1, WaitForBlockFromMiner2};
1816
pub use boot::BootToEpoch3;
1917
pub use commit_ops::{SkipCommitOpPrimaryMiner, SkipCommitOpSecondaryMiner};

testnet/stacks-node/src/tests/signer/commands/shutdown.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ impl Command<SignerTestState, SignerTestContext> for ShutdownMiners {
3737
fn build(
3838
ctx: Arc<SignerTestContext>,
3939
) -> impl Strategy<Value = CommandWrapper<SignerTestState, SignerTestContext>> {
40-
Just(CommandWrapper::new(ShutdownMiners::new(
41-
ctx.miners.clone(),
42-
)))
40+
Just(CommandWrapper::new(ShutdownMiners::new(ctx.miners.clone())))
4341
}
4442
}

testnet/stacks-node/src/tests/signer/commands/transfer.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ impl Command<SignerTestState, SignerTestContext> for SendTransferTx {
3333
fn build(
3434
ctx: Arc<SignerTestContext>,
3535
) -> impl Strategy<Value = CommandWrapper<SignerTestState, SignerTestContext>> {
36-
Just(CommandWrapper::new(SendTransferTx::new(
37-
ctx.miners.clone(),
38-
)))
36+
Just(CommandWrapper::new(SendTransferTx::new(ctx.miners.clone())))
3937
}
4038
}

0 commit comments

Comments
 (0)