From: Vadim Anufriev Date: Thu, 23 Oct 2025 21:15:18 +0000 (+0400) Subject: chore(clippy): clippy fixes X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.CommandStringError.html?a=commitdiff_plain;h=c475363939a5c354fd18732e31d6c2b7ed01f8a7;p=bdk-cli chore(clippy): clippy fixes --- diff --git a/src/handlers.rs b/src/handlers.rs index 941c550..d9d2cbe 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -1093,9 +1093,8 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result { } }; - let mut wallet = new_persisted_wallet(network, &mut persister, &wallet_opts)?; - let blockchain_client = - new_blockchain_client(&wallet_opts, &wallet, database_path)?; + let mut wallet = new_persisted_wallet(network, &mut persister, wallet_opts)?; + let blockchain_client = new_blockchain_client(wallet_opts, &wallet, database_path)?; let result = handle_online_wallet_subcommand( &mut wallet, @@ -1108,10 +1107,10 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result { }; #[cfg(not(any(feature = "sqlite", feature = "redb")))] let result = { - let wallet = new_wallet(network, &wallet_opts)?; + let wallet = new_wallet(network, wallet_opts)?; let blockchain_client = - crate::utils::new_blockchain_client(&wallet_opts, &wallet, database_path)?; - let mut wallet = new_wallet(network, &wallet_opts)?; + crate::utils::new_blockchain_client(wallet_opts, &wallet, database_path)?; + let mut wallet = new_wallet(network, wallet_opts)?; handle_online_wallet_subcommand(&mut wallet, blockchain_client, online_subcommand) .await? }; @@ -1162,10 +1161,10 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result { }; #[cfg(not(any(feature = "sqlite", feature = "redb")))] let result = { - let mut wallet = new_wallet(network, &wallet_opts)?; + let mut wallet = new_wallet(network, wallet_opts)?; handle_offline_wallet_subcommand( &mut wallet, - &wallet_opts, + wallet_opts, &cli_opts, offline_subcommand.clone(), )?