Skip to content

Commit

Permalink
fix "unused Result that must be used" warnings (#1882)
Browse files Browse the repository at this point in the history
  • Loading branch information
walf443 authored May 31, 2022
1 parent a2691b9 commit 56d5283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/postgres/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ async fn test_pg_listener_allows_pool_to_close() -> anyhow::Result<()> {
let mut listener = PgListener::connect_with(&pool).await?;

sqlx_rt::spawn(async move {
listener.recv().await;
listener.recv().await.unwrap();
});

// would previously hang forever since `PgListener` had no way to know the pool wanted to close
Expand Down

0 comments on commit 56d5283

Please sign in to comment.