diff --git a/src/commands.rs b/src/commands.rs index a89e636..6bc5999 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -13,19 +13,19 @@ //! All subcommands are defined in the below enums. #![allow(clippy::large_enum_variant)] -use clap::{AppSettings, Args, Parser, Subcommand}; +use clap::{AppSettings, Parser, Subcommand}; use bdk::bitcoin::util::bip32::{DerivationPath, ExtendedPrivKey}; use bdk::bitcoin::{Address, Network, OutPoint, Script}; +use crate::utils::{parse_outpoint, parse_recipient}; #[cfg(any( feature = "compact_filters", feature = "electrum", feature = "esplora", feature = "rpc" ))] -use crate::utils::parse_proxy_auth; -use crate::utils::{parse_outpoint, parse_recipient}; +use {crate::utils::parse_proxy_auth, clap::Args}; #[derive(PartialEq, Clone, Debug, Parser)] /// The BDK Command Line Wallet App diff --git a/src/handlers.rs b/src/handlers.rs index 459586c..422657e 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -272,7 +272,7 @@ where let mut psbts = psbt .iter() .map(|s| { - let psbt = base64::decode(&s).map_err(|e| Error::Generic(e.to_string()))?; + let psbt = base64::decode(s).map_err(|e| Error::Generic(e.to_string()))?; let psbt: PartiallySignedTransaction = deserialize(&psbt)?; Ok(psbt) })