@@ -170,7 +170,9 @@ impl AsyncAppCommand<AppContext<OnlineOperations<'_>>> for FullScanCommand {
170170 sync_kyoto_client ( wallet, client) . await ?;
171171 }
172172 }
173- Ok ( StatusResult :: new ( "Full scan completed successfully." ) )
173+ Ok ( StatusResult {
174+ message : "Full scan completed successfully." . to_string ( ) ,
175+ } )
174176 }
175177}
176178
@@ -190,7 +192,7 @@ impl AsyncAppCommand<AppContext<OnlineOperations<'_>>> for SyncCommand {
190192 & self ,
191193 ctx : & mut AppContext < OnlineOperations < ' _ > > ,
192194 ) -> Result < Self :: Output , Error > {
193- let mut wallet = & mut ctx. state . wallet ;
195+ let wallet = & mut ctx. state . wallet ;
194196 let client = ctx. state . client ;
195197 #[ cfg( any( feature = "electrum" , feature = "esplora" ) ) ]
196198 let request = wallet
@@ -267,12 +269,14 @@ impl AsyncAppCommand<AppContext<OnlineOperations<'_>>> for SyncCommand {
267269 let mempool_txs = emitter. mempool ( ) ?;
268270 wallet. apply_unconfirmed_txs ( mempool_txs. update ) ;
269271 }
270- // #[cfg(feature = "cbf")]
271- KyotoClient { client } => sync_kyoto_client ( & mut wallet, client)
272+ #[ cfg( feature = "cbf" ) ]
273+ KyotoClient { client } => sync_kyoto_client ( wallet, client)
272274 . await
273275 . map_err ( |e| Error :: Generic ( e. to_string ( ) ) ) ?,
274276 }
275- Ok ( StatusResult :: new ( "Wallet synced successfully." ) )
277+ Ok ( StatusResult {
278+ message : "Wallet synced successfully." . to_string ( ) ,
279+ } )
276280 }
277281}
278282
@@ -321,7 +325,7 @@ impl AsyncAppCommand<AppContext<OnlineOperations<'_>>> for BroadcastCommand {
321325 psbt. extract_tx ( ) ?
322326 }
323327 ( None , Some ( tx) ) => {
324- let tx_bytes = Vec :: < u8 > :: from_hex ( & tx) ?;
328+ let tx_bytes = Vec :: < u8 > :: from_hex ( tx) ?;
325329 Transaction :: consensus_decode ( & mut tx_bytes. as_slice ( ) ) ?
326330 }
327331 ( Some ( _) , Some ( _) ) => {
0 commit comments