File tree Expand file tree Collapse file tree 5 files changed +5
-12
lines changed Expand file tree Collapse file tree 5 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ Metrics endpoint: {metrics_endpoint}
335
335
336
336
/// Get the chain ID for the network
337
337
pub fn to_chain_id ( & self ) -> u32 {
338
- self . chain_id . unwrap_or_else ( || match self . network {
338
+ self . chain_id . unwrap_or ( match self . network {
339
339
Network :: Mainnet => CHAIN_ID_MAINNET ,
340
340
Network :: Testnet | Network :: Mocknet => CHAIN_ID_TESTNET ,
341
341
} )
Original file line number Diff line number Diff line change @@ -157,11 +157,7 @@ fn handle_generate_stacking_signature(
157
157
158
158
fn handle_check_config ( args : RunSignerArgs ) {
159
159
let config = GlobalConfig :: try_from ( & args. config ) . unwrap ( ) ;
160
- println ! (
161
- "Signer version: {}\n Config: \n {}" ,
162
- VERSION_STRING . to_string( ) ,
163
- config
164
- ) ;
160
+ println ! ( "Signer version: {}\n Config: \n {}" , * VERSION_STRING , config) ;
165
161
}
166
162
167
163
fn handle_generate_vote ( args : GenerateVoteArgs , do_print : bool ) -> MessageSignature {
Original file line number Diff line number Diff line change @@ -97,8 +97,7 @@ pub fn update_signer_nonce(nonce: u64) {
97
97
#[ allow( dead_code) ]
98
98
/// Remove the origin from the full path to avoid duplicate metrics for different origins
99
99
fn remove_origin_from_path ( full_path : & str , origin : & str ) -> String {
100
- let path = full_path. replace ( origin, "" ) ;
101
- path
100
+ full_path. replace ( origin, "" )
102
101
}
103
102
104
103
/// Start a new RPC call timer.
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ impl SignerTrait<SignerMessage> for Signer {
191
191
"block_height" => b. header. chain_length,
192
192
"signer_sighash" => %b. header. signer_signature_hash( ) ,
193
193
) ;
194
- stacks_client. post_block_until_ok ( self , & b) ;
194
+ stacks_client. post_block_until_ok ( self , b) ;
195
195
}
196
196
SignerMessage :: MockProposal ( mock_proposal) => {
197
197
let epoch = match stacks_client. get_node_epoch ( ) {
Original file line number Diff line number Diff line change @@ -528,8 +528,6 @@ fn replay_block(
528
528
fn replay_block_nakamoto (
529
529
sort_db : & mut SortitionDB ,
530
530
stacks_chain_state : & mut StacksChainState ,
531
- mut chainstate_tx : ChainstateTx ,
532
- clarity_instance : & mut ClarityInstance ,
533
531
block : & NakamotoBlock ,
534
532
block_size : u64 ,
535
533
) -> Result < ( ) , ChainstateError > {
@@ -785,7 +783,7 @@ fn replay_block_nakamoto(
785
783
return Err ( e) ;
786
784
} ;
787
785
788
- let ( receipt, clarity_commit , reward_set_data ) = ok_opt. expect ( "FATAL: unreachable" ) ;
786
+ let ( receipt, _clarity_commit , _reward_set_data ) = ok_opt. expect ( "FATAL: unreachable" ) ;
789
787
790
788
assert_eq ! (
791
789
receipt. header. anchored_header. block_hash( ) ,
You can’t perform that action at this time.
0 commit comments