From 76fe17b20be2b311e06cf2e49e3bff59a2373455 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 10 Feb 2018 09:52:14 -0800 Subject: [PATCH] Cell is no longer Copy This will support Cells owning `Rc<>` to things like hyperlink data or image data. --- term/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/term/src/lib.rs b/term/src/lib.rs index 25d66acea..cc7dba22f 100644 --- a/term/src/lib.rs +++ b/term/src/lib.rs @@ -339,7 +339,7 @@ impl Default for CellAttributes { } } -#[derive(Debug, Clone, Copy, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] pub struct Cell { bytes: [u8; 8], pub attrs: CellAttributes, @@ -644,7 +644,7 @@ impl Screen { if x >= max_col { break; } - line.cells[x] = blank; + line.cells[x] = blank.clone(); } }