Ensure Connection is always Send
This commit is contained in:
parent
edc6f721a5
commit
a60dc808ba
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user