diff options
author | Aleksey Kladov <[email protected]> | 2020-01-09 15:20:05 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-01-09 15:33:02 +0000 |
commit | 47785b0cd4f6ea759ffcf87af453962bcf5053f1 (patch) | |
tree | 05de1b685066e7d07bde8da2ae5f2856ba35512c /crates/ra_syntax/src/parsing | |
parent | 2ffaad10f24ad9d3d748a347e02f170f24833ec3 (diff) |
:arrow_up: rowan
Diffstat (limited to 'crates/ra_syntax/src/parsing')
-rw-r--r-- | crates/ra_syntax/src/parsing/reparsing.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parsing/reparsing.rs b/crates/ra_syntax/src/parsing/reparsing.rs index 65b8aa10d..06bdda11d 100644 --- a/crates/ra_syntax/src/parsing/reparsing.rs +++ b/crates/ra_syntax/src/parsing/reparsing.rs | |||
@@ -70,8 +70,7 @@ fn reparse_token<'node>( | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | let new_token = | 73 | let new_token = GreenToken::new(rowan::SyntaxKind(token.kind().into()), text.into()); |
74 | GreenToken::new(rowan::cursor::SyntaxKind(token.kind().into()), text.into()); | ||
75 | Some((token.replace_with(new_token), token.text_range())) | 74 | Some((token.replace_with(new_token), token.text_range())) |
76 | } | 75 | } |
77 | _ => None, | 76 | _ => None, |