Skip to content

Commit

Permalink
chore(dependencies): Force tokio to be at least 0.2.5 (hyperium#2186)
Browse files Browse the repository at this point in the history
Without this, you can end up with tokio 0.2.4 and hyper 0.13.5 in your
project, leading to a compile error like this:

```
error[E0599]: no method named `try_recv` found for struct `tokio::sync::mpsc::unbounded::UnboundedReceiver<client::dispatch::Envelope<T, U>>` in the current scope
   --> src/client/dispatch.rs:161:26
    |
161 |         match self.inner.try_recv() {
    |                          ^^^^^^^^ method not found in `tokio::sync::mpsc::unbounded::UnboundedReceiver<client::dispatch::Envelope<T, U>>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hyper`.
```
  • Loading branch information
Eijebong authored Apr 18, 2020
1 parent ffb7597 commit e08a271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ log = "0.4"
pin-project = "0.4"
time = "0.1"
tower-service = "0.3"
tokio = { version = "0.2", features = ["sync"] }
tokio = { version = "0.2.5", features = ["sync"] }
want = "0.3"

# Optional
Expand Down

0 comments on commit e08a271

Please sign in to comment.