From 56d5283ef43dcebb7a79bde990a84eb1fbca7e24 Mon Sep 17 00:00:00 2001 From: "Keiji, Yoshimi" Date: Wed, 1 Jun 2022 08:55:59 +0900 Subject: [PATCH] fix "unused `Result` that must be used" warnings (#1882) --- tests/postgres/postgres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/postgres/postgres.rs b/tests/postgres/postgres.rs index e702b29c72..0f9cc49976 100644 --- a/tests/postgres/postgres.rs +++ b/tests/postgres/postgres.rs @@ -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