This repository was archived by the owner on Oct 30, 2019. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ futures-preview = "0.3.0-alpha.18"
21
21
runtime-attributes = { path = " runtime-attributes" , version = " 0.3.0-alpha.6" , default-features = false }
22
22
runtime-raw = { path = " runtime-raw" , version = " 0.3.0-alpha.5" }
23
23
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 "
25
25
26
26
[dev-dependencies ]
27
27
failure = " 0.1.5"
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub struct Timeout<F: Future> {
26
26
impl < F : Future > Future for Timeout < F > {
27
27
type Output = Result < F :: Output , io:: Error > ;
28
28
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 > {
30
30
let this = self . project ( ) ;
31
31
32
32
if let Poll :: Ready ( t) = this. future . poll ( cx) {
@@ -148,7 +148,7 @@ pub struct TimeoutStream<S: Stream> {
148
148
impl < S : Stream > Stream for TimeoutStream < S > {
149
149
type Item = Result < S :: Item , io:: Error > ;
150
150
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 > > {
152
152
let mut this = self . project ( ) ;
153
153
154
154
if let Poll :: Ready ( s) = this. stream . as_mut ( ) . poll_next ( cx) {
@@ -225,7 +225,7 @@ pub struct TimeoutAsyncRead<S: AsyncRead> {
225
225
226
226
impl < S : AsyncRead > AsyncRead for TimeoutAsyncRead < S > {
227
227
fn poll_read (
228
- mut self : Pin < & mut Self > ,
228
+ self : Pin < & mut Self > ,
229
229
cx : & mut Context < ' _ > ,
230
230
buf : & mut [ u8 ] ,
231
231
) -> Poll < Result < usize , io:: Error > > {
You can’t perform that action at this time.
0 commit comments