Skip to content

Commit a60dc80

Browse files
committed
Ensure Connection is always Send
1 parent edc6f72 commit a60dc80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,11 @@ impl InnerConnection {
864864
}
865865
}
866866

867+
fn _ensure_send() {
868+
fn _is_send<T: Send>() {}
869+
_is_send::<Connection>();
870+
}
871+
867872
/// A connection to a Postgres database.
868873
pub struct Connection {
869874
conn: RefCell<InnerConnection>

0 commit comments

Comments
 (0)