File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ path = "../core"
13
13
14
14
15
15
[dev-dependencies ]
16
- rand = " 0.6 "
17
- criterion = " 0.3 "
18
- crossbeam-utils = " 0.7 "
19
- crossbeam = " 0.7 "
20
- heapless = " 0.7 "
21
- cfg-if = " 0.1 "
16
+ rand = " 0.8 "
17
+ criterion = " 0.5 "
18
+ crossbeam-utils = " 0.8 "
19
+ crossbeam = " 0.8 "
20
+ heapless = " 0.8 "
21
+ cfg-if = " 1.0 "
22
22
23
23
[[bench ]]
24
24
name = " benches"
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ mod tests {
33
33
let mut trng = thread_rng ( ) ;
34
34
let mut chunks = vec ! [ ] ;
35
35
while !data. is_empty ( ) {
36
- let chunk_sz = trng. gen_range ( 1 , ( 1024 - 1 ) / 2 ) ;
36
+ let chunk_sz = trng. gen_range ( 1 .. ( ( QUEUE_SIZE / 2 ) - 1 ) ) ;
37
37
if chunk_sz > data. len ( ) {
38
38
continue ;
39
39
}
@@ -264,9 +264,9 @@ mod tests {
264
264
if last_tx. elapsed ( ) > TIMEOUT_NODATA {
265
265
panic ! ( "tx timeout" ) ;
266
266
}
267
- match tx
268
- . grant_max_remaining ( trng. gen_range ( QUEUE_SIZE / 3 , ( 2 * QUEUE_SIZE ) / 3 ) )
269
- {
267
+ match tx. grant_max_remaining (
268
+ trng. gen_range ( ( QUEUE_SIZE / 3 ) .. ( ( 2 * QUEUE_SIZE ) / 3 ) ) ,
269
+ ) {
270
270
Ok ( mut gr) => {
271
271
let sz = :: std:: cmp:: min ( data_tx. len ( ) , gr. len ( ) ) ;
272
272
for i in 0 ..sz {
You can’t perform that action at this time.
0 commit comments