From 427340d7484836d33d5fce5bd45cc79cee3a8db1 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 25 Sep 2019 18:30:00 -0700 Subject: [PATCH] Ensure connect future is Send --- tokio-postgres/tests/test/types/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);