mirror of
https://github.com/isar/rusqlite.git
synced 2025-12-21 19:02:23 +08:00
Fix clippy warning
warning: this implementation is unsound, as some fields in `Connection` are `!Send`
--> src/lib.rs:339:1
339 | unsafe impl Send for Connection {}
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user