summaryrefslogtreecommitdiff
path: root/helix-core/src/position.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/position.rs')
-rw-r--r--helix-core/src/position.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-core/src/position.rs b/helix-core/src/position.rs
index 8bc48094..5e5f902b 100644
--- a/helix-core/src/position.rs
+++ b/helix-core/src/position.rs
@@ -39,9 +39,9 @@ impl From<(usize, usize)> for Position {
}
}
-impl Into<tree_sitter::Point> for Position {
- fn into(self) -> tree_sitter::Point {
- tree_sitter::Point::new(self.row, self.col)
+impl From<Position> for tree_sitter::Point {
+ fn from(pos: Position) -> Self {
+ Self::new(pos.row, pos.col)
}
}