@@ -355,9 +355,9 @@ pub(crate) async fn handle_online_wallet_subcommand(
355355 let mut once = HashSet :: < KeychainKind > :: new ( ) ;
356356 move |k, spk_i, _| {
357357 if once. insert ( k) {
358- print ! ( "\n Scanning keychain [{:?}]" , k ) ;
358+ print ! ( "\n Scanning keychain [{k :?}]" ) ;
359359 }
360- print ! ( " {:<3}" , spk_i ) ;
360+ print ! ( " {spk_i :<3}" ) ;
361361 stdout. flush ( ) . expect ( "must flush" ) ;
362362 }
363363 } ) ;
@@ -432,7 +432,7 @@ pub(crate) async fn handle_online_wallet_subcommand(
432432 . start_sync_with_revealed_spks ( )
433433 . inspect ( |item, progress| {
434434 let pc = ( 100 * progress. consumed ( ) ) as f32 / progress. total ( ) as f32 ;
435- eprintln ! ( "[ SCANNING {:03.0}% ] {}" , pc , item ) ;
435+ eprintln ! ( "[ SCANNING {pc :03.0}% ] {item}" ) ;
436436 } ) ;
437437 match client {
438438 #[ cfg( feature = "electrum" ) ]
@@ -558,7 +558,7 @@ pub(crate) async fn handle_online_wallet_subcommand(
558558
559559 let subscriber = tracing_subscriber:: FmtSubscriber :: new ( ) ;
560560 tracing:: subscriber:: set_global_default ( subscriber)
561- . map_err ( |e| Error :: Generic ( format ! ( "SetGlobalDefault error: {}" , e ) ) ) ?;
561+ . map_err ( |e| Error :: Generic ( format ! ( "SetGlobalDefault error: {e}" ) ) ) ?;
562562
563563 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
564564 tokio:: task:: spawn ( async move {
@@ -578,7 +578,7 @@ pub(crate) async fn handle_online_wallet_subcommand(
578578 let txid = tx. compute_txid ( ) ;
579579 requester
580580 . broadcast_random ( tx. clone ( ) )
581- . map_err ( |e| Error :: Generic ( format ! ( "{}" , e ) ) ) ?;
581+ . map_err ( |e| Error :: Generic ( format ! ( "{e}" ) ) ) ?;
582582 tokio:: time:: timeout ( tokio:: time:: Duration :: from_secs ( 30 ) , async move {
583583 while let Some ( info) = info_subscriber. recv ( ) . await {
584584 match info {
@@ -619,8 +619,7 @@ pub(crate) fn is_final(psbt: &Psbt) -> Result<(), Error> {
619619 let psbt_inputs = psbt. inputs . len ( ) ;
620620 if unsigned_tx_inputs != psbt_inputs {
621621 return Err ( Error :: Generic ( format ! (
622- "Malformed PSBT, {} unsigned tx inputs and {} psbt inputs." ,
623- unsigned_tx_inputs, psbt_inputs
622+ "Malformed PSBT, {unsigned_tx_inputs} unsigned tx inputs and {psbt_inputs} psbt inputs."
624623 ) ) ) ;
625624 }
626625 let sig_count = psbt. inputs . iter ( ) . fold ( 0 , |count, input| {
@@ -948,7 +947,7 @@ async fn respond(
948947 } ;
949948 if let Some ( value) = response {
950949 let value = serde_json:: to_string_pretty ( & value) . map_err ( |e| e. to_string ( ) ) ?;
951- writeln ! ( std:: io:: stdout( ) , "{}" , value ) . map_err ( |e| e. to_string ( ) ) ?;
950+ writeln ! ( std:: io:: stdout( ) , "{value}" ) . map_err ( |e| e. to_string ( ) ) ?;
952951 std:: io:: stdout ( ) . flush ( ) . map_err ( |e| e. to_string ( ) ) ?;
953952 Ok ( false )
954953 } else {
0 commit comments