diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 058c8f47b..ba652f2e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - args: --workspace --tests --examples + args: --workspace --tests --examples --benches docs: name: Rust doc comments diff --git a/benches/get_chat_msgs.rs b/benches/get_chat_msgs.rs index 48f4d2c42..51a3a7bb9 100644 --- a/benches/get_chat_msgs.rs +++ b/benches/get_chat_msgs.rs @@ -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"); diff --git a/benches/get_chatlist.rs b/benches/get_chatlist.rs index 1ea629c6c..507bca8e7 100644 --- a/benches/get_chatlist.rs +++ b/benches/get_chatlist.rs @@ -5,7 +5,7 @@ use deltachat::chatlist::Chatlist; use deltachat::context::Context; async fn get_chat_list_benchmark(context: &Context) { - Chatlist::try_load(&context, 0, None, None).await.unwrap(); + Chatlist::try_load(context, 0, None, None).await.unwrap(); } fn criterion_benchmark(c: &mut Criterion) {