From c7b1be6be345f97d6c4fd9ff3c51a94fb817fa56 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 17 Aug 2018 22:03:55 +0300 Subject: Owned --- crates/libeditor/src/extend_selection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/libeditor/src/extend_selection.rs') 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::{ pub fn extend_selection(file: &ParsedFile, range: TextRange) -> Option { let syntax = file.syntax(); - extend(syntax.as_ref(), range) + extend(syntax.borrowed(), range) } pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option { -- cgit v1.2.3