Also run clippy for benchmarks in CI (#3241)

…and fix two lints
This commit is contained in:
Hocuri
2022-04-22 15:06:34 +02:00
committed by GitHub
parent 9ef0b43c36
commit e9963ecc0d
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("chat::get_chat_msgs (load messages from 10 chats)", |b| {
b.to_async(AsyncStdExecutor)
.iter(|| get_chat_msgs_benchmark(black_box(&path.as_ref()), black_box(&chats)))
.iter(|| get_chat_msgs_benchmark(black_box(path.as_ref()), black_box(&chats)))
});
} else {
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");