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

Commit 60f9840

Browse files
authored
Update pin-project to 0.4.0-beta.1 (#110)
1 parent 6613e31 commit 60f9840

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ futures-preview = "0.3.0-alpha.18"
2121
runtime-attributes = { path = "runtime-attributes", version = "0.3.0-alpha.6", default-features = false }
2222
runtime-raw = { path = "runtime-raw", version = "0.3.0-alpha.5" }
2323
runtime-native = { path = "runtime-native", version = "0.3.0-alpha.6", optional = true }
24-
pin-project = "0.4.0-alpha.11"
24+
pin-project = "0.4.0-beta.1"
2525

2626
[dev-dependencies]
2727
failure = "0.1.5"

src/time/ext.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub struct Timeout<F: Future> {
2626
impl<F: Future> Future for Timeout<F> {
2727
type Output = Result<F::Output, io::Error>;
2828

29-
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
29+
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
3030
let this = self.project();
3131

3232
if let Poll::Ready(t) = this.future.poll(cx) {
@@ -148,7 +148,7 @@ pub struct TimeoutStream<S: Stream> {
148148
impl<S: Stream> Stream for TimeoutStream<S> {
149149
type Item = Result<S::Item, io::Error>;
150150

151-
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
151+
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
152152
let mut this = self.project();
153153

154154
if let Poll::Ready(s) = this.stream.as_mut().poll_next(cx) {
@@ -225,7 +225,7 @@ pub struct TimeoutAsyncRead<S: AsyncRead> {
225225

226226
impl<S: AsyncRead> AsyncRead for TimeoutAsyncRead<S> {
227227
fn poll_read(
228-
mut self: Pin<&mut Self>,
228+
self: Pin<&mut Self>,
229229
cx: &mut Context<'_>,
230230
buf: &mut [u8],
231231
) -> Poll<Result<usize, io::Error>> {

0 commit comments

Comments
 (0)