@@ -27,8 +27,8 @@ use bitcoin::hashes::hex::{FromHex, ToHex};
2727use bitcoin:: hashes:: Hash ;
2828use bitcoin:: secp256k1;
2929use bitcoin:: {
30- Address , Amount , Network , OutPoint , PrivateKey , Script , EcdsaSighashType , SignedAmount , Transaction ,
31- TxIn , TxOut , Txid , Witness ,
30+ Address , Amount , EcdsaSighashType , Network , OutPoint , PrivateKey , Script , SignedAmount ,
31+ Transaction , TxIn , TxOut , Txid , Witness ,
3232} ;
3333use bitcoincore_rpc:: bitcoincore_rpc_json:: {
3434 GetBlockTemplateModes , GetBlockTemplateRules , ScanTxOutRequest ,
@@ -596,8 +596,9 @@ fn test_sign_raw_transaction_with_send_raw_transaction(cl: &Client) {
596596 } ] ,
597597 } ;
598598
599- let res =
600- cl. sign_raw_transaction_with_key ( & tx, & [ sk] , None , Some ( EcdsaSighashType :: All . into ( ) ) ) . unwrap ( ) ;
599+ let res = cl
600+ . sign_raw_transaction_with_key ( & tx, & [ sk] , None , Some ( EcdsaSighashType :: All . into ( ) ) )
601+ . unwrap ( ) ;
601602 assert ! ( res. complete) ;
602603 let _ = cl. send_raw_transaction ( & res. transaction ( ) . unwrap ( ) ) . unwrap ( ) ;
603604}
@@ -1081,11 +1082,7 @@ fn test_add_ban(cl: &Client) {
10811082 let res = cl. list_banned ( ) . unwrap ( ) ;
10821083 assert_eq ! ( res. len( ) , 0 ) ;
10831084
1084- assert_error_message ! (
1085- cl. add_ban( "INVALID_STRING" , 0 , false ) ,
1086- -30 ,
1087- "Error: Invalid IP/Subnet"
1088- ) ;
1085+ assert_error_message ! ( cl. add_ban( "INVALID_STRING" , 0 , false ) , -30 , "Error: Invalid IP/Subnet" ) ;
10891086}
10901087
10911088fn test_set_network_active ( cl : & Client ) {
0 commit comments