diff --git a/tokio-postgres/tests/test/types/mod.rs b/tokio-postgres/tests/test/types/mod.rs index 09b34cc2..224a2786 100644 --- a/tokio-postgres/tests/test/types/mod.rs +++ b/tokio-postgres/tests/test/types/mod.rs @@ -661,7 +661,9 @@ async fn inet() { async fn check_send() { fn is_send(_: &T) {} - let mut client = connect("user=postgres").await; + let f = connect("user=postgres"); + is_send(&f); + let mut client = f.await; let f = client.prepare("SELECT $1::TEXT"); is_send(&f);