@@ -13,7 +13,7 @@ fn main() {
13
13
let seckey2 = SecretKey :: new ( & mut rng) ;
14
14
let pubkey2 = PublicKey :: from_secret_key ( & secp, & seckey2) ;
15
15
16
- let pubkeys = vec ! [ pubkey1, pubkey2] ;
16
+ let pubkeys = [ pubkey1, pubkey2] ;
17
17
let pubkeys_ref: Vec < & PublicKey > = pubkeys. iter ( ) . collect ( ) ;
18
18
let pubkeys_ref = pubkeys_ref. as_slice ( ) ;
19
19
@@ -51,7 +51,7 @@ fn main() {
51
51
let sec_nonce2 = nonce_pair2. 0 ;
52
52
let pub_nonce2 = nonce_pair2. 1 ;
53
53
54
- let nonces = vec ! [ pub_nonce1, pub_nonce2] ;
54
+ let nonces = [ pub_nonce1, pub_nonce2] ;
55
55
let nonces_ref: Vec < & MusigPubNonce > = nonces. iter ( ) . collect ( ) ;
56
56
let nonces_ref = nonces_ref. as_slice ( ) ;
57
57
@@ -71,7 +71,7 @@ fn main() {
71
71
let is_partial_signature_valid = session. partial_verify ( & secp, & musig_key_agg_cache, partial_sign2, pub_nonce2, pubkey2) ;
72
72
assert ! ( is_partial_signature_valid) ;
73
73
74
- let partial_sigs = vec ! [ partial_sign1, partial_sign2] ;
74
+ let partial_sigs = [ partial_sign1, partial_sign2] ;
75
75
let partial_sigs_ref: Vec < & MusigPartialSignature > = partial_sigs. iter ( ) . collect ( ) ;
76
76
let partial_sigs_ref = partial_sigs_ref. as_slice ( ) ;
77
77
0 commit comments