diff --git a/src/cache.rs b/src/cache.rs index a04feb7..c80a708 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -60,6 +60,9 @@ impl Connection { // #[derive(Debug)] // FIXME: https://github.com/kyren/hashlink/pull/4 pub struct StatementCache(RefCell, RawStatement>>); +#[allow(clippy::non_send_fields_in_send_ty)] +unsafe impl Send for StatementCache {} + /// Cacheable statement. /// /// Statement will return automatically to the cache by default. diff --git a/src/inner_connection.rs b/src/inner_connection.rs index bf2bab5..0ea630e 100644 --- a/src/inner_connection.rs +++ b/src/inner_connection.rs @@ -37,6 +37,8 @@ pub struct InnerConnection { owned: bool, } +unsafe impl Send for InnerConnection {} + impl InnerConnection { #[allow(clippy::mutex_atomic)] #[inline]