aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/parsing/parser_impl/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parsing/parser_impl/input.rs b/crates/ra_syntax/src/parsing/parser_impl/input.rs
index e9735e526..11b32b9ce 100644
--- a/crates/ra_syntax/src/parsing/parser_impl/input.rs
+++ b/crates/ra_syntax/src/parsing/parser_impl/input.rs
@@ -17,7 +17,7 @@ impl<'t> TokenSource for ParserInput<'t> {
17 } 17 }
18 fn is_token_joint_to_next(&self, pos: TokenPos) -> bool { 18 fn is_token_joint_to_next(&self, pos: TokenPos) -> bool {
19 let idx_curr = pos.0 as usize; 19 let idx_curr = pos.0 as usize;
20 let idx_next = pos.0 as usize; 20 let idx_next = pos.0 as usize + 1;
21 if !(idx_next < self.tokens.len()) { 21 if !(idx_next < self.tokens.len()) {
22 return true; 22 return true;
23 } 23 }