Skip to content

Commit 427340d

Browse files
committed
Ensure connect future is Send
1 parent 680f7b8 commit 427340d

File tree

1 file changed

+3
-1
lines changed
  • tokio-postgres/tests/test/types

1 file changed

+3
-1
lines changed

tokio-postgres/tests/test/types/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,9 @@ async fn inet() {
661661
async fn check_send() {
662662
fn is_send<T: Send>(_: &T) {}
663663

664-
let mut client = connect("user=postgres").await;
664+
let f = connect("user=postgres");
665+
is_send(&f);
666+
let mut client = f.await;
665667

666668
let f = client.prepare("SELECT $1::TEXT");
667669
is_send(&f);

0 commit comments

Comments
 (0)