@@ -40,7 +40,7 @@ fn main() -> Result<(), anyhow::Error> {
4040
4141 let address = wallet. next_unused_address ( KeychainKind :: External ) ;
4242 wallet. persist ( & mut db) ?;
43- println ! ( "Generated Address: {}" , address ) ;
43+ println ! ( "Generated Address: {address}" ) ;
4444
4545 let balance = wallet. balance ( ) ;
4646 println ! ( "Wallet balance before syncing: {}" , balance. total( ) ) ;
@@ -57,9 +57,9 @@ fn main() -> Result<(), anyhow::Error> {
5757 let mut once = HashSet :: < KeychainKind > :: new ( ) ;
5858 move |k, spk_i, _| {
5959 if once. insert ( k) {
60- print ! ( "\n Scanning keychain [{:?}]" , k ) ;
60+ print ! ( "\n Scanning keychain [{k :?}]" ) ;
6161 }
62- print ! ( " {:<3}" , spk_i ) ;
62+ print ! ( " {spk_i :<3}" ) ;
6363 stdout. flush ( ) . expect ( "must flush" ) ;
6464 }
6565 } ) ;
@@ -81,8 +81,7 @@ fn main() -> Result<(), anyhow::Error> {
8181
8282 if balance. total ( ) < SEND_AMOUNT {
8383 println ! (
84- "Please send at least {} to the receiving address" ,
85- SEND_AMOUNT
84+ "Please send at least {SEND_AMOUNT} to the receiving address"
8685 ) ;
8786 std:: process:: exit ( 0 ) ;
8887 }
@@ -116,7 +115,7 @@ fn main() -> Result<(), anyhow::Error> {
116115 ( 100 * sync_progress. consumed ( ) ) as f32 / sync_progress. total ( ) as f32 ;
117116 let progress_percent = progress_percent. round ( ) as u32 ;
118117 if progress_percent. is_multiple_of ( 5 ) && progress_percent > last_printed {
119- print ! ( "{}% " , progress_percent ) ;
118+ print ! ( "{progress_percent }% " ) ;
120119 std:: io:: stdout ( ) . flush ( ) . expect ( "must flush" ) ;
121120 last_printed = progress_percent;
122121 }
0 commit comments