diff --git a/core/io/mod.rs b/core/io/mod.rs index 58f663592..42807ee34 100644 --- a/core/io/mod.rs +++ b/core/io/mod.rs @@ -270,7 +270,6 @@ pub type BufferData = Pin>; pub type BufferDropFn = Rc; -#[derive(Clone)] pub struct Buffer { data: ManuallyDrop, drop: BufferDropFn, diff --git a/core/storage/sqlite3_ondisk.rs b/core/storage/sqlite3_ondisk.rs index 42eb95951..c766f7518 100644 --- a/core/storage/sqlite3_ondisk.rs +++ b/core/storage/sqlite3_ondisk.rs @@ -434,17 +434,6 @@ pub struct PageContent { pub overflow_cells: Vec, } -impl Clone for PageContent { - fn clone(&self) -> Self { - #[allow(clippy::arc_with_non_send_sync)] - Self { - offset: self.offset, - buffer: Arc::new(RefCell::new((*self.buffer.borrow()).clone())), - overflow_cells: self.overflow_cells.clone(), - } - } -} - impl PageContent { pub fn new(offset: usize, buffer: Arc>) -> Self { Self {