File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 2
2
name = " wasm-timer"
3
3
edition = " 2018"
4
4
description = " Abstraction over std::time::Instant and futures-timer that works on WASM"
5
- version = " 0.2.0 "
5
+ version = " 0.2.1 "
6
6
authors = [" Pierre Krieger <pierre.krieger1708@gmail.com>" ]
7
7
license = " MIT"
8
8
repository = " https://github.com/tomaka/wasm-timer"
Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ impl TimerHandle {
531
531
}
532
532
533
533
unsafe fn from_usize ( val : usize ) -> TimerHandle {
534
- let inner = mem:: transmute :: < usize , Weak < Inner > > ( val) ; ;
534
+ let inner = mem:: transmute :: < usize , Weak < Inner > > ( val) ;
535
535
TimerHandle { inner }
536
536
}
537
537
}
Original file line number Diff line number Diff line change @@ -167,18 +167,17 @@ where
167
167
unsafe_pinned ! ( stream: S ) ;
168
168
}
169
169
170
- impl < S > TryStream for TimeoutStream < S >
170
+ impl < S > Stream for TimeoutStream < S >
171
171
where
172
172
S : TryStream ,
173
173
S :: Error : From < io:: Error > ,
174
174
{
175
- type Ok = S :: Ok ;
176
- type Error = S :: Error ;
175
+ type Item = Result < S :: Ok , S :: Error > ;
177
176
178
- fn try_poll_next (
177
+ fn poll_next (
179
178
mut self : Pin < & mut Self > ,
180
179
cx : & mut Context < ' _ > ,
181
- ) -> Poll < Option < Result < Self :: Ok , Self :: Error > > > {
180
+ ) -> Poll < Option < Self :: Item > > {
182
181
let dur = self . dur ;
183
182
184
183
let r = self . as_mut ( ) . stream ( ) . try_poll_next ( cx) ;
You can’t perform that action at this time.
0 commit comments