11use bitcoin:: {
2- OutPoint ,
32 hashes:: { sha256t, sha256t_tag} ,
3+ OutPoint ,
44} ;
55
66sha256t_tag ! {
@@ -115,8 +115,8 @@ impl Default for Accumulator {
115115#[ cfg( test) ]
116116mod tests {
117117 use bitcoin:: {
118+ secp256k1:: rand:: { thread_rng, RngCore } ,
118119 Txid ,
119- secp256k1:: rand:: { RngCore , thread_rng} ,
120120 } ;
121121
122122 use super :: * ;
@@ -167,13 +167,8 @@ mod tests {
167167 #[ test]
168168 fn test_accumulator_is_zero ( ) {
169169 let mut acc = Accumulator :: default ( ) ;
170- let [
171- outpoint_one,
172- outpoint_two,
173- outpoint_three,
174- outpoint_four,
175- outpoint_five,
176- ] = make_five_outpoint ( ) ;
170+ let [ outpoint_one, outpoint_two, outpoint_three, outpoint_four, outpoint_five] =
171+ make_five_outpoint ( ) ;
177172 // Add the members
178173 acc. add ( outpoint_one) ;
179174 acc. add ( outpoint_two) ;
@@ -192,13 +187,8 @@ mod tests {
192187
193188 #[ test]
194189 fn test_same_state ( ) {
195- let [
196- outpoint_one,
197- outpoint_two,
198- outpoint_three,
199- outpoint_four,
200- outpoint_five,
201- ] = make_five_outpoint ( ) ;
190+ let [ outpoint_one, outpoint_two, outpoint_three, outpoint_four, outpoint_five] =
191+ make_five_outpoint ( ) ;
202192 let mut acc_ref = Accumulator :: default ( ) ;
203193 acc_ref. add ( outpoint_two) ;
204194 acc_ref. add ( outpoint_four) ;
@@ -217,13 +207,8 @@ mod tests {
217207
218208 #[ test]
219209 fn test_prehashing ( ) {
220- let [
221- outpoint_one,
222- outpoint_two,
223- outpoint_three,
224- outpoint_four,
225- outpoint_five,
226- ] = make_five_outpoint ( ) ;
210+ let [ outpoint_one, outpoint_two, outpoint_three, outpoint_four, outpoint_five] =
211+ make_five_outpoint ( ) ;
227212 let hash_one = hash_outpoint ( outpoint_one) ;
228213 let hash_two = hash_outpoint ( outpoint_two) ;
229214 let hash_three = hash_outpoint ( outpoint_three) ;
0 commit comments