@@ -27,8 +27,8 @@ use bitcoin::hashes::hex::{FromHex, ToHex};
27
27
use bitcoin:: hashes:: Hash ;
28
28
use bitcoin:: secp256k1;
29
29
use 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 ,
32
32
} ;
33
33
use bitcoincore_rpc:: bitcoincore_rpc_json:: {
34
34
GetBlockTemplateModes , GetBlockTemplateRules , ScanTxOutRequest ,
@@ -596,8 +596,9 @@ fn test_sign_raw_transaction_with_send_raw_transaction(cl: &Client) {
596
596
} ] ,
597
597
} ;
598
598
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 ( ) ;
601
602
assert ! ( res. complete) ;
602
603
let _ = cl. send_raw_transaction ( & res. transaction ( ) . unwrap ( ) ) . unwrap ( ) ;
603
604
}
@@ -1081,11 +1082,7 @@ fn test_add_ban(cl: &Client) {
1081
1082
let res = cl. list_banned ( ) . unwrap ( ) ;
1082
1083
assert_eq ! ( res. len( ) , 0 ) ;
1083
1084
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" ) ;
1089
1086
}
1090
1087
1091
1088
fn test_set_network_active ( cl : & Client ) {
0 commit comments