This repository was archived by the owner on Oct 30, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ edition = "2018"
16
16
async-datagram = " 2.0.0"
17
17
futures-preview = " 0.3.0-alpha.13"
18
18
lazy_static = " 1.0.0"
19
- romio = " 0.3.0-alpha.4 "
19
+ romio = " 0.3.0-alpha.5 "
20
20
runtime-raw = { path = " ../runtime-raw" , version = " 0.3.0-alpha.1" }
21
21
juliex = " 0.3.0-alpha.3"
Original file line number Diff line number Diff line change 1
1
use futures:: prelude:: * ;
2
- use romio:: async_ready :: { AsyncReadReady , AsyncReady , AsyncWriteReady } ;
2
+ use romio:: raw :: { AsyncReadReady , AsyncReady , AsyncWriteReady } ;
3
3
4
4
use std:: io;
5
5
use std:: net:: SocketAddr ;
@@ -18,11 +18,15 @@ pub(crate) struct TcpListener {
18
18
19
19
impl runtime_raw:: TcpStream for TcpStream {
20
20
fn poll_write_ready ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
21
- Pin :: new ( & mut self . romio_stream ) . poll_write_ready ( cx) . map_ok ( |_| ( ) )
21
+ Pin :: new ( & mut self . romio_stream )
22
+ . poll_write_ready ( cx)
23
+ . map_ok ( |_| ( ) )
22
24
}
23
25
24
26
fn poll_read_ready ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
25
- Pin :: new ( & mut self . romio_stream ) . poll_read_ready ( cx) . map_ok ( |_| ( ) )
27
+ Pin :: new ( & mut self . romio_stream )
28
+ . poll_read_ready ( cx)
29
+ . map_ok ( |_| ( ) )
26
30
}
27
31
28
32
fn take_error ( & self ) -> io:: Result < Option < io:: Error > > {
You can’t perform that action at this time.
0 commit comments