Skip to content

Commit 4fa3499

Browse files
committed
fix: clippy
1 parent 983f9ce commit 4fa3499

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

stacks-signer/src/v0/signer_state.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -633,18 +633,16 @@ impl LocalStateMachine {
633633
*tx_replay_scope = Some(new_scope);
634634
}
635635
}
636-
} else {
637-
if Self::handle_possible_replay_failsafe(
638-
&replay_state,
639-
&expected_burn_block,
640-
client,
641-
)? {
642-
info!(
636+
} else if Self::handle_possible_replay_failsafe(
637+
&replay_state,
638+
&expected_burn_block,
639+
client,
640+
)? {
641+
info!(
643642
"Signer state: replay set is stalled after 2 tenures. Clearing the replay set."
644643
);
645-
tx_replay_set = ReplayTransactionSet::none();
646-
*tx_replay_scope = None;
647-
}
644+
tx_replay_set = ReplayTransactionSet::none();
645+
*tx_replay_scope = None;
648646
}
649647
}
650648

@@ -1198,7 +1196,7 @@ impl LocalStateMachine {
11981196
Ok(Some(Self::get_forked_txs_from_fork_info(&fork_info)))
11991197
}
12001198

1201-
fn get_forked_txs_from_fork_info(fork_info: &Vec<TenureForkingInfo>) -> Vec<StacksTransaction> {
1199+
fn get_forked_txs_from_fork_info(fork_info: &[TenureForkingInfo]) -> Vec<StacksTransaction> {
12021200
// Collect transactions to be replayed across the forked blocks
12031201
let mut forked_blocks = fork_info
12041202
.iter()

0 commit comments

Comments
 (0)