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

Commit 6432efc

Browse files
committed
prune deps + rm warnings
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent 1648078 commit 6432efc

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

runtime-raw/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,4 @@ categories = ["asynchronous", "network-programming", "filesystem", "concurrency"
88
edition = "2018"
99

1010
[dependencies]
11-
async-datagram = "2.0.0"
1211
futures-preview = "0.3.0-alpha.13"
13-
lazy_static = "1.0.0"
14-
mio = "0.6.16"

runtime-tokio/src/tcp.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ pub(crate) struct TcpListener {
1919
}
2020

2121
impl runtime_raw::TcpStream for TcpStream {
22-
fn poll_write_ready(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> {
22+
fn poll_write_ready(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> {
2323
match self.tokio_stream.poll_write_ready() {
2424
Err(e) => Poll::Ready(Err(e)),
2525
Ok(futures01::Async::Ready(_)) => Poll::Ready(Ok(())),
2626
Ok(futures01::Async::NotReady) => Poll::Pending,
2727
}
2828
}
2929

30-
fn poll_read_ready(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> {
30+
fn poll_read_ready(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> {
3131
let mask = mio::Ready::readable();
3232
match self.tokio_stream.poll_read_ready(mask) {
3333
Err(e) => Poll::Ready(Err(e)),
@@ -61,7 +61,7 @@ impl runtime_raw::TcpStream for TcpStream {
6161

6262
impl AsyncRead for TcpStream {
6363
fn poll_read(
64-
mut self: Pin<&mut Self>,
64+
self: Pin<&mut Self>,
6565
cx: &mut Context<'_>,
6666
mut buf: &mut [u8],
6767
) -> Poll<io::Result<usize>> {
@@ -72,20 +72,20 @@ impl AsyncRead for TcpStream {
7272

7373
impl AsyncWrite for TcpStream {
7474
fn poll_write(
75-
mut self: Pin<&mut Self>,
75+
self: Pin<&mut Self>,
7676
cx: &mut Context<'_>,
7777
buf: &[u8],
7878
) -> Poll<io::Result<usize>> {
7979
let mut stream = Compat01As03::new(&self.tokio_stream);
8080
Pin::new(&mut stream).poll_write(cx, &buf)
8181
}
8282

83-
fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
83+
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
8484
let mut stream = Compat01As03::new(&self.tokio_stream);
8585
Pin::new(&mut stream).poll_flush(cx)
8686
}
8787

88-
fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
88+
fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
8989
let mut stream = Compat01As03::new(&self.tokio_stream);
9090
Pin::new(&mut stream).poll_close(cx)
9191
}
@@ -97,7 +97,7 @@ impl runtime_raw::TcpListener for TcpListener {
9797
}
9898

9999
fn poll_accept(
100-
mut self: Pin<&mut Self>,
100+
self: Pin<&mut Self>,
101101
_cx: &mut Context<'_>,
102102
) -> Poll<io::Result<Pin<Box<dyn runtime_raw::TcpStream>>>> {
103103
let listener = unsafe { &mut self.get_unchecked_mut().tokio_listener };

runtime-tokio/src/udp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl runtime_raw::UdpSocket for UdpSocket {
1616
}
1717

1818
fn poll_send_to(
19-
mut self: Pin<&mut Self>,
19+
self: Pin<&mut Self>,
2020
_cx: &mut Context<'_>,
2121
buf: &[u8],
2222
receiver: &SocketAddr,
@@ -30,7 +30,7 @@ impl runtime_raw::UdpSocket for UdpSocket {
3030
}
3131

3232
fn poll_recv_from(
33-
mut self: Pin<&mut Self>,
33+
self: Pin<&mut Self>,
3434
_cx: &mut Context<'_>,
3535
buf: &mut [u8],
3636
) -> Poll<io::Result<(usize, SocketAddr)>> {

0 commit comments

Comments
 (0)