benches: fix build error (#3769)

This commit is contained in:
Taiki Endo 2021-05-09 22:26:20 +09:00 committed by GitHub
parent f9ce18a524
commit 17c7ce616c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -68,6 +68,13 @@ jobs:
run: cargo hack test --each-feature
working-directory: tests-build
# Build benchmarks. Run of benchmarks is done by bench.yml workflow.
- name: build benches
run: cargo build --benches
working-directory: benches
# bench.yml workflow runs benchmarks only on linux.
if: startsWith(matrix.os, 'ubuntu')
valgrind:
name: valgrind
runs-on: ubuntu-latest

View File

@ -10,6 +10,7 @@ bencher = "0.1.5"
[dev-dependencies]
tokio-util = { version = "0.6.6", path = "../tokio-util", features = ["full"] }
tokio-stream = { path = "../tokio-stream" }
[target.'cfg(unix)'.dependencies]
libc = "0.2.42"

View File

@ -1,6 +1,6 @@
#![cfg(unix)]
use tokio::stream::StreamExt;
use tokio_stream::StreamExt;
use tokio::fs::File;
use tokio::io::AsyncReadExt;