Merge pull request #1050 from gwenn/clippy_send

Fix clippy warning
This commit is contained in:
gwenn 2022-01-16 09:00:07 +01:00 committed by GitHub
commit 34b9519c3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,9 @@ impl Connection {
// #[derive(Debug)] // FIXME: https://github.com/kyren/hashlink/pull/4
pub struct StatementCache(RefCell<LruCache<Arc<str>, 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.

View File

@ -37,6 +37,8 @@ pub struct InnerConnection {
owned: bool,
}
unsafe impl Send for InnerConnection {}
impl InnerConnection {
#[allow(clippy::mutex_atomic)]
#[inline]