File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ async fn respond(
10081008 } ;
10091009 if let Some ( value) = response {
10101010 let value = serde_json:: to_string_pretty ( & value) . map_err ( |e| e. to_string ( ) ) ?;
1011- writeln ! ( std:: io:: stdout( ) , "{}" , value ) . map_err ( |e| e. to_string ( ) ) ?;
1011+ writeln ! ( std:: io:: stdout( ) , "{value}" ) . map_err ( |e| e. to_string ( ) ) ?;
10121012 std:: io:: stdout ( ) . flush ( ) . map_err ( |e| e. to_string ( ) ) ?;
10131013 Ok ( false )
10141014 } else {
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ async fn main() {
2828 let cli_opts: CliOpts = CliOpts :: parse ( ) ;
2929
3030 let network = & cli_opts. network ;
31- debug ! ( "network: {:?}" , network ) ;
31+ debug ! ( "network: {network :?}" ) ;
3232 if network == & Network :: Bitcoin {
3333 warn ! ( "This is experimental software and not currently recommended for use on Bitcoin mainnet, proceed with caution." )
3434 }
3535
3636 match handle_command ( cli_opts) . await {
37- Ok ( result) => println ! ( "{}" , result ) ,
37+ Ok ( result) => println ! ( "{result}" ) ,
3838 Err ( e) => {
39- error ! ( "{}" , e ) ;
39+ error ! ( "{e}" ) ;
4040 std:: process:: exit ( 1 ) ;
4141 }
4242 }
You can’t perform that action at this time.
0 commit comments