Ensure Connection is always Send

This commit is contained in:
Steven Fackler 2015-07-22 07:41:40 -07:00
parent edc6f721a5
commit a60dc808ba

View File

@ -864,6 +864,11 @@ impl InnerConnection {
} }
} }
fn _ensure_send() {
fn _is_send<T: Send>() {}
_is_send::<Connection>();
}
/// A connection to a Postgres database. /// A connection to a Postgres database.
pub struct Connection { pub struct Connection {
conn: RefCell<InnerConnection> conn: RefCell<InnerConnection>