Skip to content

Commit 73a7db9

Browse files
committed
Fix clippy warning
1 parent 72cc953 commit 73a7db9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/wallet/error.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ pub enum CreatePsbtError {
273273
/// Failed to create a spending plan for a manually selected output.
274274
Plan(OutPoint),
275275
/// Failed to create PSBT.
276-
Psbt(bdk_tx::CreatePsbtError),
276+
// TODO(@valuedmammal): `Box` shouldn't be needed once we can depend on `bdk_tx` 0.2.0.
277+
Psbt(alloc::boxed::Box<bdk_tx::CreatePsbtError>),
277278
/// Selector error.
278279
Selector(bdk_tx::SelectorError),
279280
/// The UTXO of outpoint could not be found.

src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,7 @@ impl Wallet {
30623062
mandate_full_tx_for_segwit_v0: !params.only_witness_utxo,
30633063
sighash_type: params.sighash_type,
30643064
})
3065-
.map_err(CreatePsbtError::Psbt)?;
3065+
.map_err(|e| CreatePsbtError::Psbt(Box::new(e)))?;
30663066

30673067
// Add global xpubs.
30683068
if params.add_global_xpubs {

0 commit comments

Comments
 (0)