diff --git a/lib/src/graph.rs b/lib/src/graph.rs index deb60ba8..8124478d 100644 --- a/lib/src/graph.rs +++ b/lib/src/graph.rs @@ -92,3 +92,8 @@ impl Graph { q.execute(db, self.config.fetch_size, connection).await } } + +const _: () = { + const fn assert_send_sync() {} + assert_send_sync::(); +}; diff --git a/lib/src/txn.rs b/lib/src/txn.rs index f980e303..ed1cc1fd 100644 --- a/lib/src/txn.rs +++ b/lib/src/txn.rs @@ -79,6 +79,11 @@ impl Txn { } } +const _: () = { + const fn assert_send_sync() {} + assert_send_sync::(); +}; + pub trait TransactionHandle: private::Handle {} impl TransactionHandle for Txn {}