aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src/extend_selection.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-17 20:03:55 +0100
committerAleksey Kladov <[email protected]>2018-08-17 20:03:55 +0100
commitc7b1be6be345f97d6c4fd9ff3c51a94fb817fa56 (patch)
tree123b895ad8b2797b3b6ebcceebd36fb375ec7a38 /crates/libeditor/src/extend_selection.rs
parentd3c90ded2b9a4f75e101fa3abc60cd3aebc439c9 (diff)
Owned
Diffstat (limited to 'crates/libeditor/src/extend_selection.rs')
-rw-r--r--crates/libeditor/src/extend_selection.rs2
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
7pub fn extend_selection(file: &ParsedFile, range: TextRange) -> Option<TextRange> { 7pub 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
12pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> { 12pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> {