mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-21 00:54:19 +01:00
implement Clone for Arc<Mutex> types
This commit is contained in:
@@ -129,6 +129,14 @@ pub struct Statement {
|
||||
inner: Arc<Mutex<limbo_core::Statement>>,
|
||||
}
|
||||
|
||||
impl Clone for Statement {
|
||||
fn clone(&self) -> Self {
|
||||
Self {
|
||||
inner: Arc::clone(&self.inner),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Statement {}
|
||||
unsafe impl Sync for Statement {}
|
||||
|
||||
@@ -241,6 +249,14 @@ pub struct Rows {
|
||||
inner: Arc<Mutex<limbo_core::Statement>>,
|
||||
}
|
||||
|
||||
impl Clone for Rows {
|
||||
fn clone(&self) -> Self {
|
||||
Self {
|
||||
inner: Arc::clone(&self.inner),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Rows {}
|
||||
unsafe impl Sync for Rows {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user