aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cell.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cell.rs b/src/cell.rs
index c32071e..fbff5fb 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -27,8 +27,7 @@ impl Cell {
}
pub(crate) fn reset(&mut self) {
- self.contents = String::new();
- self.attrs = crate::attrs::Attrs::default();
+ *self = Self::default();
}
pub fn contents(&self) -> &str {