Fix benchmark compile error (#2457)

This commit is contained in:
Hocuri
2021-05-28 18:48:13 +02:00
committed by GitHub
parent 8b19b6f9fe
commit 46e901be78

View File

@@ -17,7 +17,7 @@ async fn address_book_benchmark(n: u32, read_count: u32) {
.collect::<Vec<String>>()
.join("");
Contact::add_address_book(&context, book).await.unwrap();
Contact::add_address_book(&context, &book).await.unwrap();
let query: Option<&str> = None;
for _ in 0..read_count {