From 6a65d665f5809b42cb63cc5023da0f22a9e068aa Mon Sep 17 00:00:00 2001 From: DanGould Date: Wed, 4 Oct 2023 12:39:19 -0400 Subject: [PATCH] Simplify payout_scripts iterator --- mutiny-core/src/nodemanager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutiny-core/src/nodemanager.rs b/mutiny-core/src/nodemanager.rs index 1c7d624a5..301d3d332 100644 --- a/mutiny-core/src/nodemanager.rs +++ b/mutiny-core/src/nodemanager.rs @@ -1074,7 +1074,7 @@ impl NodeManager { .map_err(|_| MutinyError::PayjoinConfigError)?; let original_psbt = self.wallet.create_signed_psbt(address, amount, fee_rate)?; - let payout_scripts = std::iter::once(uri.address.script_pubkey()).collect::>(); + let payout_scripts = std::iter::once(uri.address.script_pubkey()); let fee_rate = if let Some(rate) = fee_rate { FeeRate::from_sat_per_vb(rate) } else {