Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Aug 16, 2024
1 parent 4d27f85 commit 7323820
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sqlx-core/src/postgres/testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ static DO_CLEANUP: AtomicBool = AtomicBool::new(true);

impl TestSupport for Postgres {
fn test_context(args: &TestArgs) -> BoxFuture<'_, Result<TestContext<Self>, Error>> {
Box::pin(async move {
let res = test_context(args).await;
res
})
Box::pin(test_context(args))
}

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

query("delete from _sqlx_test.databases where db_name = $1")
.bind(&db_name)
.bind(db_name)
.execute(&mut conn)
.await?;

Expand Down Expand Up @@ -143,7 +140,7 @@ async fn test_context(args: &TestArgs) -> Result<TestContext<Postgres>, Error> {
returning db_name
"#,
)
.bind(&args.test_path)
.bind(args.test_path)
.fetch_one(&mut conn)
.await?;

Expand Down

0 comments on commit 7323820

Please sign in to comment.