Update to futures-preview 0.3.0-alpha.16 (#230)

This commit is contained in:
Artem Vorotnikov
2019-05-11 22:18:52 +03:00
committed by Tim
parent 593ac135ce
commit 31abea18b3
22 changed files with 100 additions and 115 deletions

View File

@@ -4,7 +4,7 @@
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#![feature(arbitrary_self_types, await_macro, async_await)]
#![feature(arbitrary_self_types, async_await)]
use clap::{App, Arg};
use futures::{
@@ -47,7 +47,7 @@ async fn run(server_addr: SocketAddr) -> io::Result<()> {
// the generated Service trait.
.respond_with(service::serve(HelloServer));
await!(server);
server.await;
Ok(())
}