mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Merge remote-tracking branch 'upstream/master' into script
This commit is contained in:
commit
db9dae27cf
@ -60,6 +60,9 @@ impl Connection {
|
|||||||
// #[derive(Debug)] // FIXME: https://github.com/kyren/hashlink/pull/4
|
// #[derive(Debug)] // FIXME: https://github.com/kyren/hashlink/pull/4
|
||||||
pub struct StatementCache(RefCell<LruCache<Arc<str>, RawStatement>>);
|
pub struct StatementCache(RefCell<LruCache<Arc<str>, RawStatement>>);
|
||||||
|
|
||||||
|
#[allow(clippy::non_send_fields_in_send_ty)]
|
||||||
|
unsafe impl Send for StatementCache {}
|
||||||
|
|
||||||
/// Cacheable statement.
|
/// Cacheable statement.
|
||||||
///
|
///
|
||||||
/// Statement will return automatically to the cache by default.
|
/// Statement will return automatically to the cache by default.
|
||||||
|
@ -37,6 +37,8 @@ pub struct InnerConnection {
|
|||||||
owned: bool,
|
owned: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for InnerConnection {}
|
||||||
|
|
||||||
impl InnerConnection {
|
impl InnerConnection {
|
||||||
#[allow(clippy::mutex_atomic)]
|
#[allow(clippy::mutex_atomic)]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
Reference in New Issue
Block a user