@@ -257,7 +257,7 @@ impl PartiallySignedTransaction {
257257 // changed by Updaters and Combiners, the sequence number in this unsigned
258258 // transaction must be set to 0 (not final, nor the sequence in PSBT_IN_SEQUENCE).
259259 // The lock time in this unsigned transaction must be computed as described previously.
260- for inp in tx. input . iter_mut ( ) {
260+ for inp in & mut tx. input {
261261 inp. sequence = Sequence :: from_height ( 0 ) ;
262262 }
263263 Ok ( tx. txid ( ) )
@@ -283,7 +283,7 @@ impl PartiallySignedTransaction {
283283 let mut inputs = vec ! [ ] ;
284284 let mut outputs = vec ! [ ] ;
285285
286- for psetin in self . inputs . iter ( ) {
286+ for psetin in & self . inputs {
287287 let txin = TxIn {
288288 previous_output : OutPoint :: new ( psetin. previous_txid , psetin. previous_output_index ) ,
289289 is_pegin : psetin. is_pegin ( ) ,
@@ -308,7 +308,7 @@ impl PartiallySignedTransaction {
308308 inputs. push ( txin) ;
309309 }
310310
311- for out in self . outputs . iter ( ) {
311+ for out in & self . outputs {
312312 let txout = TxOut {
313313 asset : match ( out. asset_comm , out. asset ) {
314314 ( Some ( gen) , _) => confidential:: Asset :: Confidential ( gen) ,
@@ -634,7 +634,7 @@ impl PartiallySignedTransaction {
634634 ValueBlindingFactor :: last ( secp, value, out_abf, & inp_secrets, & exp_out_secrets) ;
635635
636636 // Add all the scalars
637- for value_diff in self . global . scalars . iter ( ) {
637+ for value_diff in & self . global . scalars {
638638 final_vbf += ValueBlindingFactor ( * value_diff) ;
639639 }
640640
0 commit comments