Skip to content

Commit b20a140

Browse files
Fix some clippies..
1 parent 1e21cc7 commit b20a140

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/commands.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
//! All subcommands are defined in the below enums.
1414
1515
#![allow(clippy::large_enum_variant)]
16-
use clap::{AppSettings, Args, Parser, Subcommand};
16+
use clap::{AppSettings, Parser, Subcommand};
1717

1818
use bdk::bitcoin::util::bip32::{DerivationPath, ExtendedPrivKey};
1919
use bdk::bitcoin::{Address, Network, OutPoint, Script};
2020

21+
use crate::utils::{parse_outpoint, parse_recipient};
2122
#[cfg(any(
2223
feature = "compact_filters",
2324
feature = "electrum",
2425
feature = "esplora",
2526
feature = "rpc"
2627
))]
27-
use crate::utils::parse_proxy_auth;
28-
use crate::utils::{parse_outpoint, parse_recipient};
28+
use {crate::utils::parse_proxy_auth, clap::Args};
2929

3030
#[derive(PartialEq, Clone, Debug, Parser)]
3131
/// The BDK Command Line Wallet App

src/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ where
272272
let mut psbts = psbt
273273
.iter()
274274
.map(|s| {
275-
let psbt = base64::decode(&s).map_err(|e| Error::Generic(e.to_string()))?;
275+
let psbt = base64::decode(s).map_err(|e| Error::Generic(e.to_string()))?;
276276
let psbt: PartiallySignedTransaction = deserialize(&psbt)?;
277277
Ok(psbt)
278278
})

0 commit comments

Comments
 (0)