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(
160160 let internal_key_present = x_only_pks
161161 . iter ( )
162162 . 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] ) ;
164164 let prevouts = [ witness_utxo] ;
165165 let prevouts = sighash:: Prevouts :: All ( & prevouts) ;
166166
@@ -188,7 +188,7 @@ pub fn test_desc_satisfy(
188188 let leaf_hash = TapLeafHash :: from_script ( & ms. encode ( ) , LeafVersion :: TapScript ) ;
189189 ms. iter_pk ( ) . filter_map ( move |pk| {
190190 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) )
192192 } )
193193 } )
194194 . collect ( ) ;
You can’t perform that action at this time.
0 commit comments