Skip to content

Commit 51d9c71

Browse files
committed
small thi
1 parent 8c95a37 commit 51d9c71

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/cratesfyi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,8 @@ enum BlacklistSubcommand {
754754

755755
impl 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)

src/storage/archive_index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)