diff options
Diffstat (limited to 'crates/ra_syntax/src/reparsing.rs')
-rw-r--r-- | crates/ra_syntax/src/reparsing.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs index da44913c5..e3c200d1e 100644 --- a/crates/ra_syntax/src/reparsing.rs +++ b/crates/ra_syntax/src/reparsing.rs | |||
@@ -1,11 +1,11 @@ | |||
1 | use algo; | 1 | use algo; |
2 | use grammar; | 2 | use grammar; |
3 | use lexer::{tokenize, Token}; | 3 | use lexer::{tokenize, Token}; |
4 | use text_unit::{TextRange, TextUnit}; | 4 | use yellow::{self, GreenNode, SyntaxNodeRef, SyntaxError}; |
5 | use yellow::{self, SyntaxNodeRef, GreenNode, SyntaxError}; | ||
6 | use parser_impl; | 5 | use parser_impl; |
7 | use parser_api::Parser; | 6 | use parser_api::Parser; |
8 | use { | 7 | use { |
8 | TextUnit, TextRange, | ||
9 | SyntaxKind::*, | 9 | SyntaxKind::*, |
10 | }; | 10 | }; |
11 | use text_utils::replace_range; | 11 | use text_utils::replace_range; |
@@ -65,7 +65,7 @@ fn reparse_leaf<'node>( | |||
65 | return None; | 65 | return None; |
66 | } | 66 | } |
67 | 67 | ||
68 | let green = GreenNode::new_leaf(node.kind(), &text); | 68 | let green = GreenNode::new_leaf(node.kind(), text.into()); |
69 | let new_errors = vec![]; | 69 | let new_errors = vec![]; |
70 | Some((node, green, new_errors)) | 70 | Some((node, green, new_errors)) |
71 | } | 71 | } |
@@ -340,4 +340,4 @@ enum Foo { | |||
340 | } | 340 | } |
341 | ", "Clone"); | 341 | ", "Clone"); |
342 | } | 342 | } |
343 | } \ No newline at end of file | 343 | } |