diff --git a/Cargo.toml b/Cargo.toml index 211dd41..0338213 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,8 +11,8 @@ version = "0.1.4" members = ["http-service-hyper", "http-service-mock"] [dependencies] -bytes = "0.4.11" -http = "0.1.13" +bytes = "0.4.12" +http = "0.1.17" [dependencies.futures-preview] -version = "0.3.0-alpha.13" +version = "0.3.0-alpha.14" diff --git a/http-service-hyper/Cargo.toml b/http-service-hyper/Cargo.toml index 128d2f5..62123c2 100644 --- a/http-service-hyper/Cargo.toml +++ b/http-service-hyper/Cargo.toml @@ -14,8 +14,8 @@ version = "0.1.0" [dependencies] http = "0.1" http-service = "0.1.4" -hyper = "0.12.24" +hyper = "0.12.27" [dependencies.futures-preview] features = ["compat"] -version = "0.3.0-alpha.13" +version = "0.3.0-alpha.14" diff --git a/http-service-mock/Cargo.toml b/http-service-mock/Cargo.toml index 1e88baf..99faf14 100644 --- a/http-service-mock/Cargo.toml +++ b/http-service-mock/Cargo.toml @@ -14,4 +14,4 @@ version = "0.1.0" http-service = "0.1.4" [dependencies.futures-preview] -version = "0.3.0-alpha.13" \ No newline at end of file +version = "0.3.0-alpha.14" \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 6ea4d97..499465b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,7 @@ use futures::{ future, prelude::*, stream::{self, StreamObj}, - task::Waker, + task::Context, Poll, }; @@ -62,8 +62,8 @@ impl Unpin for Body {} impl Stream for Body { type Item = Result; - fn poll_next(mut self: Pin<&mut Self>, waker: &Waker) -> Poll> { - Pin::new(&mut self.stream).poll_next(waker) + fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll> { + Pin::new(&mut self.stream).poll_next(cx) } }