Skip to content

Commit cd90b82

Browse files
committed
Remove async_await feature gate
1 parent 3b06481 commit cd90b82

File tree

7 files changed

+247
-209
lines changed

7 files changed

+247
-209
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: rust
22
sudo: false
33
rust:
4-
- nightly-2019-08-12
4+
- nightly-2019-08-21
55

66
os:
77
- linux
@@ -12,7 +12,7 @@ script:
1212
matrix:
1313
include:
1414
- os: linux
15-
rust: nightly-2019-08-12
15+
rust: nightly-2019-08-21
1616
sudo: required
1717
name: coverage
1818
addons: # needed for `cargo install cargo-travis`

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ like `FutureExt::map`, `TryFutureExt::and_then`...
1010

1111
# Requirements
1212

13-
Rust nightly-2019-08-12 for async_await.
13+
Rust nightly-2019-08-21 for async_await.
1414

1515
# State
1616

examples/future.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
#![feature(async_await)]
2-
3-
use futures_async_combinators::future::*;
41
use futures::executor;
2+
use futures_async_combinators::future::*;
53

64
fn main() {
75
executor::block_on(async {
86
let future = ready(Ok::<i32, i32>(1));
97
let future = and_then(future, |x| ready(Ok::<i32, i32>(x + 3)));
10-
let future = inspect(future, |x| { dbg!(x); });
8+
let future = inspect(future, |x| {
9+
dbg!(x);
10+
});
1111
assert_eq!(future.await, Ok(4));
1212
});
1313
}

examples/stream.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
#![feature(async_await)]
2-
3-
use futures_async_combinators::stream::*;
41
use futures::executor;
2+
use futures_async_combinators::stream::*;
53

64
fn main() {
75
let stream = iter(1..=3);
86
let stream = map(stream, |x| x + 1);
97
let stream = map(stream, |x| x * 2);
108

119
let collect_future = collect(stream);
12-
let collection : Vec<_> = executor::block_on(collect_future);
10+
let collection: Vec<_> = executor::block_on(collect_future);
1311

1412
assert_eq!(vec![4, 6, 8], collection);
1513
}

0 commit comments

Comments
 (0)