Skip to content

Commit 7323820

Browse files
committed
clippy
1 parent 4d27f85 commit 7323820

File tree

1 file changed

+3
-6
lines changed
  • sqlx-core/src/postgres/testing

1 file changed

+3
-6
lines changed

sqlx-core/src/postgres/testing/mod.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ static DO_CLEANUP: AtomicBool = AtomicBool::new(true);
2424

2525
impl TestSupport for Postgres {
2626
fn test_context(args: &TestArgs) -> BoxFuture<'_, Result<TestContext<Self>, Error>> {
27-
Box::pin(async move {
28-
let res = test_context(args).await;
29-
res
30-
})
27+
Box::pin(test_context(args))
3128
}
3229

3330
fn cleanup_test(db_name: &str) -> BoxFuture<'_, Result<(), Error>> {
@@ -42,7 +39,7 @@ impl TestSupport for Postgres {
4239
.await?;
4340

4441
query("delete from _sqlx_test.databases where db_name = $1")
45-
.bind(&db_name)
42+
.bind(db_name)
4643
.execute(&mut conn)
4744
.await?;
4845

@@ -143,7 +140,7 @@ async fn test_context(args: &TestArgs) -> Result<TestContext<Postgres>, Error> {
143140
returning db_name
144141
"#,
145142
)
146-
.bind(&args.test_path)
143+
.bind(args.test_path)
147144
.fetch_one(&mut conn)
148145
.await?;
149146

0 commit comments

Comments
 (0)