File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ Timeouts and intervals for futures.
12
12
"""
13
13
14
14
[dependencies ]
15
- futures = " 0.2"
15
+ futures = " 0.2.0-alpha "
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn single() {
12
12
let dur = Duration :: from_millis ( 10 ) ;
13
13
let start = Instant :: now ( ) ;
14
14
let interval = Interval :: new ( dur) ;
15
- block_on ( interval. take ( 1 ) . collect :: < Vec < _ > > ( ) ) . unwrap ( ) ;
15
+ block_on ( interval. take ( 1 ) . collect ( ) ) . unwrap ( ) ;
16
16
assert ! ( start. elapsed( ) >= dur) ;
17
17
}
18
18
@@ -21,7 +21,7 @@ fn two_times() {
21
21
let dur = Duration :: from_millis ( 10 ) ;
22
22
let start = Instant :: now ( ) ;
23
23
let interval = Interval :: new ( dur) ;
24
- let result = block_on ( interval. take ( 2 ) . collect :: < Vec < _ > > ( ) ) . unwrap ( ) ;
24
+ let result = block_on ( interval. take ( 2 ) . collect ( ) ) . unwrap ( ) ;
25
25
assert ! ( start. elapsed( ) >= dur* 2 ) ;
26
26
assert_eq ! ( result, vec![ ( ) , ( ) ] ) ;
27
27
}
You can’t perform that action at this time.
0 commit comments