diff options
author | Blaž Hrastnik | 2021-01-19 07:16:15 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-01-19 07:16:15 +0000 |
commit | 7c99ff58fdc4c5217f86e59d2b3ec0df10f79aaa (patch) | |
tree | c5a5480ef22590813058f451480f31b618c94669 /helix-core/src/position.rs | |
parent | f1539cc86680935a0b2a5bbd16c64b110687cdf7 (diff) |
nix: include rust-src so rust-analyzer works correctly.
Diffstat (limited to 'helix-core/src/position.rs')
-rw-r--r-- | helix-core/src/position.rs | 6 |
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) } } |