diff options
Diffstat (limited to 'crates/libeditor/src/typing.rs')
-rw-r--r-- | crates/libeditor/src/typing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libeditor/src/typing.rs b/crates/libeditor/src/typing.rs index ebc7c77d2..e7eba671f 100644 --- a/crates/libeditor/src/typing.rs +++ b/crates/libeditor/src/typing.rs | |||
@@ -1,5 +1,5 @@ | |||
1 | use libsyntax2::{ | 1 | use libsyntax2::{ |
2 | TextUnit, TextRange, SyntaxNodeRef, ParsedFile, | 2 | TextUnit, TextRange, SyntaxNodeRef, File, |
3 | algo::{ | 3 | algo::{ |
4 | walk::preorder, | 4 | walk::preorder, |
5 | find_covering_node, | 5 | find_covering_node, |
@@ -10,7 +10,7 @@ use libsyntax2::{ | |||
10 | 10 | ||
11 | use {ActionResult, EditBuilder}; | 11 | use {ActionResult, EditBuilder}; |
12 | 12 | ||
13 | pub fn join_lines(file: &ParsedFile, range: TextRange) -> ActionResult { | 13 | pub fn join_lines(file: &File, range: TextRange) -> ActionResult { |
14 | let range = if range.is_empty() { | 14 | let range = if range.is_empty() { |
15 | let text = file.syntax().text(); | 15 | let text = file.syntax().text(); |
16 | let text = &text[TextRange::from_to(range.start(), TextUnit::of_str(&text))]; | 16 | let text = &text[TextRange::from_to(range.start(), TextUnit::of_str(&text))]; |