File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ pub fn test_desc_satisfy(
160
160
let internal_key_present = x_only_pks
161
161
. iter ( )
162
162
. position ( |& x| x. to_public_key ( ) == * tr. internal_key ( ) ) ;
163
- let internal_keypair = internal_key_present. map ( |idx| xonly_keypairs[ idx] . clone ( ) ) ;
163
+ let internal_keypair = internal_key_present. map ( |idx| xonly_keypairs[ idx] ) ;
164
164
let prevouts = [ witness_utxo] ;
165
165
let prevouts = sighash:: Prevouts :: All ( & prevouts) ;
166
166
@@ -188,7 +188,7 @@ pub fn test_desc_satisfy(
188
188
let leaf_hash = TapLeafHash :: from_script ( & ms. encode ( ) , LeafVersion :: TapScript ) ;
189
189
ms. iter_pk ( ) . filter_map ( move |pk| {
190
190
let i = x_only_pks. iter ( ) . position ( |& x| x. to_public_key ( ) == pk) ;
191
- i. map ( |idx| ( xonly_keypairs[ idx] . clone ( ) , leaf_hash) )
191
+ i. map ( |idx| ( xonly_keypairs[ idx] , leaf_hash) )
192
192
} )
193
193
} )
194
194
. collect ( ) ;
You can’t perform that action at this time.
0 commit comments