From 376d63867a850568991f01c742938612c0179e40 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 23 Sep 2019 01:52:14 +0900 Subject: chore: update pin-project to 0.4.0-beta.1 (#1586) --- tokio-io/Cargo.toml | 4 ++-- tokio-io/src/io/buf_stream.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tokio-io') diff --git a/tokio-io/Cargo.toml b/tokio-io/Cargo.toml index 7290b672..65f119e4 100644 --- a/tokio-io/Cargo.toml +++ b/tokio-io/Cargo.toml @@ -20,7 +20,7 @@ Core I/O primitives for asynchronous I/O in Rust. categories = ["asynchronous"] [features] -util = ["memchr", "pin-utils"] +util = ["memchr", "pin-utils", "pin-project"] [dependencies] bytes = "0.4.7" @@ -28,7 +28,7 @@ log = "0.4" futures-core-preview = "=0.3.0-alpha.18" memchr = { version = "2.2", optional = true } pin-utils = { version = "=0.1.0-alpha.4", optional = true } -pin-project = "=0.4.0-alpha.11" +pin-project = { version = "=0.4.0-beta.1", optional = true } [dev-dependencies] tokio = { version = "=0.2.0-alpha.5", path = "../tokio" } diff --git a/tokio-io/src/io/buf_stream.rs b/tokio-io/src/io/buf_stream.rs index f2abfb08..88624f19 100644 --- a/tokio-io/src/io/buf_stream.rs +++ b/tokio-io/src/io/buf_stream.rs @@ -29,25 +29,25 @@ impl BufStream { impl AsyncWrite for BufStream { fn poll_write( - mut self: Pin<&mut Self>, + self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll> { self.project().0.poll_write(cx, buf) } - fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { self.project().0.poll_flush(cx) } - fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { self.project().0.poll_shutdown(cx) } } impl AsyncRead for BufStream { fn poll_read( - mut self: Pin<&mut Self>, + self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll> { @@ -62,10 +62,10 @@ impl AsyncRead for BufStream { impl AsyncBufRead for BufStream { fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - self.project_into().0.poll_fill_buf(cx) + self.project().0.poll_fill_buf(cx) } - fn consume(mut self: Pin<&mut Self>, amt: usize) { + fn consume(self: Pin<&mut Self>, amt: usize) { self.project().0.consume(amt) } } -- cgit v1.2.3