@@ -10,7 +10,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
10
10
. unwrap ( ) ;
11
11
let pairing_bitbox = bitbox. unlock_and_pair ( ) . await . unwrap ( ) ;
12
12
if let Some ( pairing_code) = pairing_bitbox. get_pairing_code ( ) . as_ref ( ) {
13
- println ! ( "Pairing code\n {}" , pairing_code ) ;
13
+ println ! ( "Pairing code\n {pairing_code}" ) ;
14
14
}
15
15
let paired_bitbox = pairing_bitbox. wait_confirm ( ) . await . unwrap ( ) ;
16
16
@@ -22,7 +22,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
22
22
] )
23
23
. await
24
24
. unwrap ( ) ;
25
- println ! ( "Xpubs: {:?}" , xpubs ) ;
25
+ println ! ( "Xpubs: {xpubs :?}" ) ;
26
26
27
27
println ! ( "Getting an address..." ) ;
28
28
let address = paired_bitbox
@@ -36,7 +36,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
36
36
)
37
37
. await
38
38
. unwrap ( ) ;
39
- println ! ( "Address: {}" , address ) ;
39
+ println ! ( "Address: {address}" ) ;
40
40
41
41
println ! ( "Signing a transaction with tokens..." ) ;
42
42
let change_config = bitbox_api:: cardano:: make_script_config_pkh_skh (
@@ -101,7 +101,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
101
101
. cardano_sign_transaction ( transaction)
102
102
. await
103
103
. unwrap ( ) ;
104
- println ! ( "Witness: {:?}" , witness ) ;
104
+ println ! ( "Witness: {witness :?}" ) ;
105
105
106
106
println ! ( "Delegating to a staking pool..." ) ;
107
107
let transaction = pb:: CardanoSignTransactionRequest {
@@ -156,7 +156,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
156
156
. cardano_sign_transaction ( transaction)
157
157
. await
158
158
. unwrap ( ) ;
159
- println ! ( "Witness: {:?}" , witness ) ;
159
+ println ! ( "Witness: {witness :?}" ) ;
160
160
161
161
println ! ( "Withdrawing staking rewards..." ) ;
162
162
let transaction = pb:: CardanoSignTransactionRequest {
@@ -194,7 +194,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
194
194
. cardano_sign_transaction ( transaction)
195
195
. await
196
196
. unwrap ( ) ;
197
- println ! ( "Witness: {:?}" , witness ) ;
197
+ println ! ( "Witness: {witness :?}" ) ;
198
198
}
199
199
200
200
#[ tokio:: main( flavor = "current_thread" ) ]
0 commit comments