Byron/prodash

error[E0599]: no method named `send` found for struct `futures_channel::mpsc::Sender<termion::event::Key>` in the current scope

behnam opened this issue · 1 comments

With latest stable rustc/cargo:

~$ cargo --version
cargo 1.47.0 (f3c7e066a 2020-08-28)
~$ rustc --version
rustc 1.47.0 (18bf6b4f0 2020-10-07)

I get this error when compiling prodash as a dependency of crates-io-cli:

   Compiling prodash v4.1.0
error[E0599]: no method named `send` found for struct `futures_channel::mpsc::Sender<termion::event::Key>` in the current scope
   --> /Users/behnam/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-4.1.0/src/tui/engine.rs:147:37
    |
147 |             smol::block_on(key_send.send(key)).ok();
    |                                     ^^^^ method not found in `futures_channel::mpsc::Sender<termion::event::Key>`
    |
   ::: /Users/behnam/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-channel-0.3.7/src/mpsc/mod.rs:125:1
    |
125 | pub struct Sender<T>(Option<BoundedSenderInner<T>>);
    | ----------------------------------------------------
    | |
    | doesn't satisfy `_: futures_util::SinkExt<_>`
    | doesn't satisfy `_: futures_util::sink::Sink<_>`
    |
    = note: the method `send` exists but the following trait bounds were not satisfied:
            `futures_channel::mpsc::Sender<termion::event::Key>: futures_util::sink::Sink<_>`
            which is required by `futures_channel::mpsc::Sender<termion::event::Key>: futures_util::SinkExt<_>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `prodash`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `crates-io-cli v3.3.0`, intermediate artifacts can be found at `/var/folders/27/zbpxp72j1kxbyz2xj6jrfq380000gn/T/cargo-installnfxgAo`

Caused by:
  build failed
Byron commented

Closing this one in favor of the one linked here.