summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/index.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/src/index.rs')
-rw-r--r--alacritty_terminal/src/index.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/alacritty_terminal/src/index.rs b/alacritty_terminal/src/index.rs
index 7d1a8e91..0a100e18 100644
--- a/alacritty_terminal/src/index.rs
+++ b/alacritty_terminal/src/index.rs
@@ -19,6 +19,8 @@ use std::cmp::{Ord, Ordering};
use std::fmt;
use std::ops::{self, Add, AddAssign, Deref, Range, RangeInclusive, Sub, SubAssign};
+use serde::{Deserialize, Serialize};
+
use crate::term::RenderableCell;
/// The side of a cell
@@ -77,8 +79,8 @@ impl From<Point> for Point<usize> {
}
}
-impl From<&RenderableCell> for Point<Line> {
- fn from(cell: &RenderableCell) -> Self {
+impl From<RenderableCell> for Point<Line> {
+ fn from(cell: RenderableCell) -> Self {
Point::new(cell.line, cell.column)
}
}