File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
sqlx-core/src/postgres/testing Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ static DO_CLEANUP: AtomicBool = AtomicBool::new(true);
2424
2525impl 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
You can’t perform that action at this time.
0 commit comments