From a60dc808ba2c764cf97b417a649950d59750b98a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 22 Jul 2015 07:41:40 -0700 Subject: [PATCH] Ensure Connection is always Send --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 65340e2e..e9dee9ed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -864,6 +864,11 @@ impl InnerConnection { } } +fn _ensure_send() { + fn _is_send() {} + _is_send::(); +} + /// A connection to a Postgres database. pub struct Connection { conn: RefCell