Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Commit f2c347b

Browse files
committed
romio alpha.5
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent b868a79 commit f2c347b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

runtime-native/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ edition = "2018"
1616
async-datagram = "2.0.0"
1717
futures-preview = "0.3.0-alpha.13"
1818
lazy_static = "1.0.0"
19-
romio = "0.3.0-alpha.4"
19+
romio = "0.3.0-alpha.5"
2020
runtime-raw = { path = "../runtime-raw", version = "0.3.0-alpha.1" }
2121
juliex = "0.3.0-alpha.3"

runtime-native/src/tcp.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use futures::prelude::*;
2-
use romio::async_ready::{AsyncReadReady, AsyncReady, AsyncWriteReady};
2+
use romio::raw::{AsyncReadReady, AsyncReady, AsyncWriteReady};
33

44
use std::io;
55
use std::net::SocketAddr;
@@ -18,11 +18,15 @@ pub(crate) struct TcpListener {
1818

1919
impl runtime_raw::TcpStream for TcpStream {
2020
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(|_| ())
2224
}
2325

2426
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(|_| ())
2630
}
2731

2832
fn take_error(&self) -> io::Result<Option<io::Error>> {

0 commit comments

Comments
 (0)