@@ -52,9 +52,7 @@ async fn test_spsc_tasks() {
5252 let rb_clone = rb. clone ( ) ;
5353 async move {
5454 let mut counter = 0 ;
55- let full_enq = rb_clone
56- . get_shard_capacity ( 0 )
57- . unwrap ( ) ;
55+ let full_enq = rb_clone. get_shard_capacity ( 0 ) . unwrap ( ) ;
5856 let mut enq_vec = Vec :: with_capacity ( full_enq) ;
5957 for item in 0 ..2 * MAX_ITEMS {
6058 if counter != 0 && counter % full_enq == 0 {
@@ -156,9 +154,7 @@ async fn test_spmc_tasks() {
156154 let rb_clone = rb. clone ( ) ;
157155 async move {
158156 let mut counter = 0 ;
159- let full_enq = rb_clone
160- . get_shard_capacity ( 0 )
161- . unwrap ( ) / MAX_SHARDS ;
157+ let full_enq = rb_clone. get_shard_capacity ( 0 ) . unwrap ( ) / MAX_SHARDS ;
162158 let mut enq_vec = Vec :: with_capacity ( full_enq) ;
163159 for item in 0 ..2 * MAX_ITEMS {
164160 if counter != 0 && counter % full_enq == 0 {
@@ -261,9 +257,7 @@ async fn test_mpsc_tasks() {
261257 let rb_clone = rb. clone ( ) ;
262258 async move {
263259 let mut counter = 0 ;
264- let full_enq = rb_clone
265- . get_shard_capacity ( 0 )
266- . unwrap ( ) ;
260+ let full_enq = rb_clone. get_shard_capacity ( 0 ) . unwrap ( ) ;
267261 let mut enq_vec = Vec :: with_capacity ( full_enq) ;
268262 for item in 0 ..2 * MAX_ITEMS {
269263 if counter != 0 && counter % full_enq == 0 {
@@ -366,9 +360,7 @@ async fn test_mpmc_tasks() {
366360 let rb_clone = rb. clone ( ) ;
367361 async move {
368362 let mut counter = 0 ;
369- let full_enq = rb_clone
370- . get_shard_capacity ( 0 )
371- . unwrap ( ) / MAX_SHARDS ;
363+ let full_enq = rb_clone. get_shard_capacity ( 0 ) . unwrap ( ) / MAX_SHARDS ;
372364 let mut enq_vec = Vec :: with_capacity ( full_enq) ;
373365 for item in 0 ..2 * MAX_ITEMS {
374366 if counter != 0 && counter % full_enq == 0 {
@@ -419,4 +411,4 @@ async fn test_mpmc_tasks() {
419411
420412 assert_eq ! ( 2 * MAX_ITEMS * MAX_ENQ , items_taken) ;
421413 }
422- }
414+ }
0 commit comments