aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src/extend_selection.rs
diff options
context:
space:
mode:
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> {