diff options
Diffstat (limited to 'alacritty_terminal/src/index.rs')
-rw-r--r-- | alacritty_terminal/src/index.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/index.rs b/alacritty_terminal/src/index.rs index 2c28bec2..2ee679db 100644 --- a/alacritty_terminal/src/index.rs +++ b/alacritty_terminal/src/index.rs @@ -190,8 +190,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) } } |