summaryrefslogtreecommitdiff
path: root/src/renderer/rects.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/rects.rs')
-rw-r--r--src/renderer/rects.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/rects.rs b/src/renderer/rects.rs
index 2e5cd85b..b4f8a012 100644
--- a/src/renderer/rects.rs
+++ b/src/renderer/rects.rs
@@ -96,7 +96,7 @@ impl<'a> Rects<'a> {
// Start a new line if the flag is present
if cell.flags.contains(line.flag) {
- *start = *cell;
+ *start = cell.clone();
*end = cell.into();
} else {
line.range = None;
@@ -105,7 +105,7 @@ impl<'a> Rects<'a> {
// Check for new start of line
None => {
if cell.flags.contains(line.flag) {
- line.range = Some((*cell, cell.into()));
+ line.range = Some((cell.clone(), cell.into()));
}
},
};