From 5283ad4a0821595371b2aa2f0846c1c8e9ee3946 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 19 Sep 2019 14:45:15 -0700 Subject: [PATCH] Clean up workaround --- tokio-postgres/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tokio-postgres/src/lib.rs b/tokio-postgres/src/lib.rs index 29f378a6..78570907 100644 --- a/tokio-postgres/src/lib.rs +++ b/tokio-postgres/src/lib.rs @@ -168,10 +168,7 @@ where T: MakeTlsConnect, { let config = config.parse::()?; - // FIXME https://github.com/rust-lang/rust/issues/64391 - async move { - config.connect(tls).await - }.await + return config.connect(tls).await; } /// An asynchronous notification.