fix "unused Result that must be used" warnings (#1882)

This commit is contained in:
Keiji, Yoshimi 2022-06-01 08:55:59 +09:00 committed by GitHub
parent a2691b9635
commit 56d5283ef4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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