Skip to content

Commit e444639

Browse files
authored
Use trait
1 parent e38be0d commit e444639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/benches/bench.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use doublets::{
77
};
88
use tokio_postgres::{Error, NoTls};
99

10-
use linkspsql::Client;
10+
use linkspsql::{Client, Cruds};
1111

1212
async fn connect() -> Result<Client, Error> {
1313
let (client, connection) = tokio_postgres::connect("", NoTls).await.unwrap();
@@ -53,7 +53,7 @@ fn create_thousand_links_with_transaction(c: &mut Criterion) {
5353
});
5454
});
5555
runtime.block_on(async {
56-
let transaction = client.transaction().await.unwrap();
56+
let mut transaction = client.transaction().await.unwrap();
5757
for i in 1..=1_000 {
5858
transaction.delete(&[i; 2]).await.unwrap();
5959
}

0 commit comments

Comments
 (0)