diff options
author | Aleksey Kladov <[email protected]> | 2018-08-17 20:03:55 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-17 20:03:55 +0100 |
commit | c7b1be6be345f97d6c4fd9ff3c51a94fb817fa56 (patch) | |
tree | 123b895ad8b2797b3b6ebcceebd36fb375ec7a38 /crates/libeditor/src | |
parent | d3c90ded2b9a4f75e101fa3abc60cd3aebc439c9 (diff) |
Owned
Diffstat (limited to 'crates/libeditor/src')
-rw-r--r-- | crates/libeditor/src/extend_selection.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libeditor/src/extend_selection.rs b/crates/libeditor/src/extend_selection.rs index cb6edb576..171e40692 100644 --- a/crates/libeditor/src/extend_selection.rs +++ b/crates/libeditor/src/extend_selection.rs | |||
@@ -6,7 +6,7 @@ use libsyntax2::{ | |||
6 | 6 | ||
7 | pub fn extend_selection(file: &ParsedFile, range: TextRange) -> Option<TextRange> { | 7 | pub fn extend_selection(file: &ParsedFile, range: TextRange) -> Option<TextRange> { |
8 | let syntax = file.syntax(); | 8 | let syntax = file.syntax(); |
9 | extend(syntax.as_ref(), range) | 9 | extend(syntax.borrowed(), range) |
10 | } | 10 | } |
11 | 11 | ||
12 | pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> { | 12 | pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> { |