Skip to content

Commit 66840ea

Browse files
authored
Update tokio to 1 (#44)
1 parent cf14b12 commit 66840ea

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

async-stream-impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ quote = "1"
2121
async-stream = { version = "0.3.0", path = "../async-stream" }
2222
futures-core = "0.3"
2323
futures-util = "0.3"
24-
tokio = { version = "0.3", features = ["full"] }
24+
tokio = { version = "1", features = ["full"] }

async-stream/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ futures-core = "0.3"
2525

2626
[dev-dependencies]
2727
futures-util = "0.3"
28-
tokio = { version = "0.3", features = ["full"] }
29-
tokio-test = "0.3"
28+
tokio = { version = "1", features = ["full"] }
29+
tokio-test = "0.4"
3030
trybuild = "1"

async-stream/tests/ui/yield_in_async.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ error[E0727]: `async` generators are not yet supported
1212
6 | yield 123;
1313
| ^^^^^^^^^
1414

15-
error[E0271]: type mismatch resolving `<[static generator@$DIR/tests/ui/yield_in_async.rs:4:5: 10:7 _] as std::ops::Generator<std::future::ResumeTy>>::Yield == ()`
15+
error[E0271]: type mismatch resolving `<[static generator@$DIR/tests/ui/yield_in_async.rs:4:5: 10:7 _] as Generator<ResumeTy>>::Yield == ()`
1616
--> $DIR/yield_in_async.rs:4:5
1717
|
1818
4 | / stream! {

async-stream/tests/ui/yield_in_closure.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ error[E0658]: yield syntax is experimental
66
|
77
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
88

9-
error[E0277]: expected a `std::ops::FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
9+
error[E0277]: expected a `FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
1010
--> $DIR/yield_in_closure.rs:6:14
1111
|
1212
6 | .and_then(|v| {
1313
| ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
1414
|
15-
= help: the trait `std::ops::FnOnce<(&str,)>` is not implemented for `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
15+
= help: the trait `FnOnce<(&str,)>` is not implemented for `[generator@$DIR/tests/ui/yield_in_closure.rs:4:5: 10:7 _]`
1616

1717
Some errors have detailed explanations: E0277, E0658.
1818
For more information about an error, try `rustc --explain E0277`.

0 commit comments

Comments
 (0)