From c475363939a5c354fd18732e31d6c2b7ed01f8a7 Mon Sep 17 00:00:00 2001 From: Vadim Anufriev Date: Fri, 24 Oct 2025 01:15:18 +0400 Subject: [PATCH] chore(clippy): clippy fixes --- src/handlers.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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(), )? -- 2.49.0