Skip to content

Commit 31863f4

Browse files
committed
Remove redundant local variables
One is trivial the other is braindead, perhaps they are both braindead.
1 parent fc0fd00 commit 31863f4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bitcoin/examples/taproot-psbt.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,7 @@ impl BenefactorWallet {
447447

448448
let input = Input {
449449
witness_utxo: {
450-
let script_pubkey = script_pubkey;
451-
let amount = Amount::from_sat(value);
452-
453-
Some(TxOut { value: amount.to_sat(), script_pubkey })
450+
Some(TxOut { value, script_pubkey })
454451
},
455452
tap_key_origins: origins,
456453
tap_merkle_root: taproot_spend_info.merkle_root(),

0 commit comments

Comments
 (0)