@@ -85,7 +85,7 @@ mod integration {
8585 . check_pj_supported ( )
8686 . map_err ( |e| e. to_string ( ) ) ?;
8787 let psbt = build_original_psbt ( & sender, & uri) ?;
88- debug ! ( "Original psbt: {:#?}" , psbt ) ;
88+ debug ! ( "Original psbt: {psbt :#?}" ) ;
8989 let ( req, ctx) = SenderBuilder :: new ( psbt, uri)
9090 . build_with_additional_fee ( Amount :: from_sat ( 10000 ) , None , FeeRate :: ZERO , false ) ?
9191 . extract_v1 ( ) ;
@@ -150,7 +150,7 @@ mod integration {
150150 . check_pj_supported ( )
151151 . map_err ( |e| e. to_string ( ) ) ?;
152152 let psbt = build_original_psbt ( & sender, & uri) ?;
153- debug ! ( "Original psbt: {:#?}" , psbt ) ;
153+ debug ! ( "Original psbt: {psbt :#?}" ) ;
154154 let ( req, _ctx) = SenderBuilder :: new ( psbt, uri)
155155 . build_with_additional_fee ( Amount :: from_sat ( 10000 ) , None , FeeRate :: ZERO , false ) ?
156156 . extract_v1 ( ) ;
@@ -656,14 +656,14 @@ mod integration {
656656 . map ( input_pair_from_list_unspent) ;
657657 let selected_input =
658658 payjoin. try_preserving_privacy ( candidate_inputs) . map_err ( |e| {
659- format ! ( "Failed to make privacy preserving selection: {:?}" , e )
659+ format ! ( "Failed to make privacy preserving selection: {e :?}" )
660660 } ) ?;
661661 vec ! [ selected_input]
662662 }
663663 } ;
664664 let payjoin = payjoin
665665 . contribute_inputs ( inputs)
666- . map_err ( |e| format ! ( "Failed to contribute inputs: {:?}" , e ) ) ?
666+ . map_err ( |e| format ! ( "Failed to contribute inputs: {e :?}" ) ) ?
667667 . commit_inputs ( ) ;
668668
669669 // Sign and finalize the proposal PSBT
@@ -1038,7 +1038,7 @@ mod integration {
10381038 . check_pj_supported ( )
10391039 . map_err ( |e| e. to_string ( ) ) ?;
10401040 let psbt = build_original_psbt ( & sender, & uri) ?;
1041- log:: debug!( "Original psbt: {:#?}" , psbt ) ;
1041+ log:: debug!( "Original psbt: {psbt :#?}" ) ;
10421042 let max_additional_fee = Amount :: from_sat ( 1000 ) ;
10431043 let ( req, ctx) = SenderBuilder :: new ( psbt. clone ( ) , uri)
10441044 . build_with_additional_fee ( max_additional_fee, None , FeeRate :: ZERO , false ) ?
@@ -1116,7 +1116,7 @@ mod integration {
11161116 . check_pj_supported ( )
11171117 . map_err ( |e| e. to_string ( ) ) ?;
11181118 let psbt = build_original_psbt ( & sender, & uri) ?;
1119- log:: debug!( "Original psbt: {:#?}" , psbt ) ;
1119+ log:: debug!( "Original psbt: {psbt :#?}" ) ;
11201120 let ( req, ctx) = SenderBuilder :: new ( psbt. clone ( ) , uri)
11211121 . build_with_additional_fee ( Amount :: from_sat ( 10000 ) , None , FeeRate :: ZERO , false ) ?
11221122 . extract_v1 ( ) ;
@@ -1226,7 +1226,7 @@ mod integration {
12261226 let proposal =
12271227 handle_proposal ( proposal, receiver, custom_outputs, drain_script, custom_inputs) ?;
12281228 let psbt = proposal. psbt ( ) ;
1229- tracing:: debug!( "Receiver's Payjoin proposal PSBT: {:#?}" , & psbt ) ;
1229+ tracing:: debug!( "Receiver's Payjoin proposal PSBT: {psbt :#?}" ) ;
12301230 Ok ( psbt. to_string ( ) )
12311231 }
12321232
@@ -1284,13 +1284,13 @@ mod integration {
12841284 . map ( input_pair_from_list_unspent) ;
12851285 let selected_input = payjoin
12861286 . try_preserving_privacy ( candidate_inputs)
1287- . map_err ( |e| format ! ( "Failed to make privacy preserving selection: {:?}" , e ) ) ?;
1287+ . map_err ( |e| format ! ( "Failed to make privacy preserving selection: {e :?}" ) ) ?;
12881288 vec ! [ selected_input]
12891289 }
12901290 } ;
12911291 let payjoin = payjoin
12921292 . contribute_inputs ( inputs)
1293- . map_err ( |e| format ! ( "Failed to contribute inputs: {:?}" , e ) ) ?
1293+ . map_err ( |e| format ! ( "Failed to contribute inputs: {e :?}" ) ) ?
12941294 . commit_inputs ( ) ;
12951295
12961296 let payjoin_proposal = payjoin. finalize_proposal (
@@ -1320,7 +1320,7 @@ mod integration {
13201320 let payjoin_psbt =
13211321 sender. finalize_psbt ( & payjoin_psbt, Some ( false ) ) ?. psbt . expect ( "should contain a PSBT" ) ;
13221322 let payjoin_psbt = Psbt :: from_str ( & payjoin_psbt) ?;
1323- tracing:: debug!( "Sender's Payjoin PSBT: {:#?}" , payjoin_psbt ) ;
1323+ tracing:: debug!( "Sender's Payjoin PSBT: {payjoin_psbt :#?}" ) ;
13241324
13251325 Ok ( payjoin_psbt. extract_tx ( ) ?)
13261326 }
0 commit comments