Skip to content
This repository was archived by the owner on Jun 21, 2020. It is now read-only.

Commit 01545e1

Browse files
committed
Update futures-preview to 0.3.0-alpha.16
1 parent ffd41ca commit 01545e1

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ http = "0.1.17"
1818
http-service-hyper = { path = "http-service-hyper", version = "0.2.0" }
1919

2020
[dependencies.futures-preview]
21-
version = "0.3.0-alpha.15"
21+
version = "0.3.0-alpha.16"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</div>
4848

4949
## About
50-
The crate `http-service` provides the necessary types and traits to implement your own HTTP Server. It uses `hyper` for the lower level TCP abstraction.
50+
The crate `http-service` provides the necessary types and traits to implement your own HTTP Server. It uses `hyper` for the lower level TCP abstraction.
5151

5252
You can use the workspace member [`http-service-hyper`](https://crates.io/crates/http-service-hyper) to run your HTTP Server.
5353

@@ -70,7 +70,7 @@ version = "0.1.1"
7070

7171
**main.rs**
7272
```rust
73-
#![feature(futures_api, async_await, existential_type)]
73+
#![feature(async_await, existential_type)]
7474

7575
use futures::future::{self, FutureObj};
7676
use http_service::{HttpService, Response};

http-service-hyper/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ hyper = "0.12.27"
1818

1919
[dependencies.futures-preview]
2020
features = ["compat"]
21-
version = "0.3.0-alpha.15"
21+
version = "0.3.0-alpha.16"

http-service-mock/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ version = "0.2.0"
1414
http-service = { version = "0.2.0", path = ".." }
1515

1616
[dependencies.futures-preview]
17-
version = "0.3.0-alpha.15"
17+
version = "0.3.0-alpha.16"

src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//!
44
//! ## Example
55
//! ```no_run, rust, ignore
6-
//! #![feature(futures_api, async_await, existential_type)]
6+
//! #![feature(async_await, existential_type)]
77
//!
88
//! use futures::{
99
//! future::{self, FutureObj},
@@ -64,12 +64,10 @@ use futures::{
6464
future,
6565
prelude::*,
6666
stream::{self, BoxStream},
67-
task::Context,
68-
Poll,
67+
task::{Context, Poll},
6968
};
7069

7170
use std::fmt;
72-
use std::marker::Unpin;
7371
use std::pin::Pin;
7472

7573
/// The raw body of an http request or response.
@@ -96,7 +94,6 @@ impl Body {
9694
}
9795

9896
/// Reads the stream into a new `Vec`.
99-
#[allow(unused_mut)]
10097
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4037
10198
pub async fn into_vec(mut self) -> std::io::Result<Vec<u8>> {
10299
let mut bytes = Vec::new();

0 commit comments

Comments
 (0)