Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic.rs failing to compile without async-std #43

Open
ahcm opened this issue Apr 10, 2021 · 2 comments
Open

basic.rs failing to compile without async-std #43

ahcm opened this issue Apr 10, 2021 · 2 comments

Comments

@ahcm
Copy link

ahcm commented Apr 10, 2021

Without the async-smtp dependency the compilation of the example/basic.rs failed with:

 let messages: Vec<_> = messages_stream.collect::<Result<_>>().await?;
   |                                            ^^^^^^^ method cannot be called on `impl async_std::stream::Stream+std::marker::Send` due to unsatisfied trait bounds
@zoechi
Copy link

zoechi commented Apr 13, 2021

Same here. I wasn't able to find a workaround

@zoechi
Copy link

zoechi commented Apr 25, 2021

I could solve this with

use futures::TryStreamExt;
...
let messages: Vec<_> = TryStreamExt::try_collect(messages_stream).await.unwrap();

@link2xt link2xt changed the title basic.rs failing to compile without async-smtp basic.rs failing to compile without async-std Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants