@@ -13,7 +13,7 @@ fn main() {
1313 let seckey2 = SecretKey :: new ( & mut rng) ;
1414 let pubkey2 = PublicKey :: from_secret_key ( & secp, & seckey2) ;
1515
16- let pubkeys = vec ! [ pubkey1, pubkey2] ;
16+ let pubkeys = [ pubkey1, pubkey2] ;
1717 let pubkeys_ref: Vec < & PublicKey > = pubkeys. iter ( ) . collect ( ) ;
1818 let pubkeys_ref = pubkeys_ref. as_slice ( ) ;
1919
@@ -51,7 +51,7 @@ fn main() {
5151 let sec_nonce2 = nonce_pair2. 0 ;
5252 let pub_nonce2 = nonce_pair2. 1 ;
5353
54- let nonces = vec ! [ pub_nonce1, pub_nonce2] ;
54+ let nonces = [ pub_nonce1, pub_nonce2] ;
5555 let nonces_ref: Vec < & MusigPubNonce > = nonces. iter ( ) . collect ( ) ;
5656 let nonces_ref = nonces_ref. as_slice ( ) ;
5757
@@ -71,7 +71,7 @@ fn main() {
7171 let is_partial_signature_valid = session. partial_verify ( & secp, & musig_key_agg_cache, partial_sign2, pub_nonce2, pubkey2) ;
7272 assert ! ( is_partial_signature_valid) ;
7373
74- let partial_sigs = vec ! [ partial_sign1, partial_sign2] ;
74+ let partial_sigs = [ partial_sign1, partial_sign2] ;
7575 let partial_sigs_ref: Vec < & MusigPartialSignature > = partial_sigs. iter ( ) . collect ( ) ;
7676 let partial_sigs_ref = partial_sigs_ref. as_slice ( ) ;
7777
0 commit comments