Remove Clone impl for Buffer and PageContent

This commit is contained in:
PThorpe92
2025-08-05 14:26:53 -04:00
parent 9492a29d47
commit 914c10e095
2 changed files with 0 additions and 12 deletions

View File

@@ -270,7 +270,6 @@ pub type BufferData = Pin<Vec<u8>>;
pub type BufferDropFn = Rc<dyn Fn(BufferData)>;
#[derive(Clone)]
pub struct Buffer {
data: ManuallyDrop<BufferData>,
drop: BufferDropFn,

View File

@@ -434,17 +434,6 @@ pub struct PageContent {
pub overflow_cells: Vec<OverflowCell>,
}
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<RefCell<Buffer>>) -> Self {
Self {