File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -754,8 +754,8 @@ enum BlacklistSubcommand {
754754
755755impl BlacklistSubcommand {
756756 fn handle_args ( self , ctx : Context ) -> Result < ( ) > {
757- ctx. runtime . block_on ( async {
758- let conn = & mut * ctx. pool . get_async ( ) . await ?;
757+ ctx. runtime . block_on ( async move {
758+ let conn = & mut ctx. pool . get_async ( ) . await ?;
759759 match self {
760760 Self :: List => {
761761 let crates = db:: blacklist:: list_crates ( conn)
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ mod tests {
198198 tf
199199 }
200200
201- #[ tokio:: test( flavor = "multi_thread" ) ]
201+ #[ tokio:: test]
202202 async fn index_create_save_load_sqlite ( ) -> Result < ( ) > {
203203 let mut tf = create_test_archive ( 1 ) ;
204204
@@ -214,7 +214,7 @@ mod tests {
214214 Ok ( ( ) )
215215 }
216216
217- #[ tokio:: test( flavor = "multi_thread" ) ]
217+ #[ tokio:: test]
218218 async fn archive_with_more_than_65k_files ( ) -> Result < ( ) > {
219219 let mut tf = create_test_archive ( 100_000 ) ;
220220
You can’t perform that action at this time.
0 commit comments