Skip to content

benches: fix build error #3769

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

Merged
merged 3 commits into from
May 9, 2021
Merged

benches: fix build error #3769

merged 3 commits into from
May 9, 2021

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented May 9, 2021

$ cargo build --benches --manifest-path benches/Cargo.toml
   Compiling benches v0.0.0 (...)
error[E0432]: unresolved import `tokio::stream::StreamExt`
 --> benches/fs.rs:3:5
  |
3 | use tokio::stream::StreamExt;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^ no `StreamExt` in `stream`

error[E0599]: no method named `next` found for struct `FramedRead<tokio::fs::File, BytesCodec>` in the current scope
  --> benches/fs.rs:35:43
   |
35 |                 let _bytes = input_stream.next().await.unwrap();
   |                                           ^^^^ method not found in `FramedRead<tokio::fs::File, BytesCodec>`

error: aborting due to 2 previous errors

@Darksonn Darksonn added the A-ci Area: The continuous integration setup label May 9, 2021
@taiki-e taiki-e merged commit 17c7ce6 into tokio-rs:master May 9, 2021
@taiki-e taiki-e deleted the benches branch May 9, 2021 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: The continuous integration setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants