diff options
author | Daniel McNab <[email protected]> | 2019-01-24 21:41:02 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-24 21:41:02 +0000 |
commit | 82dfb0015760742e437f224f315f2d5534bdb926 (patch) | |
tree | 6161ec29359e9d4a533d3744704ee87e7506f650 /crates/ra_syntax/src/grammar/expressions | |
parent | f0e5a314b029216c4f9446aa6ba34c4b842db23e (diff) |
Apply suggestions from code review
Co-Authored-By: DJMcNab <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/grammar/expressions')
-rw-r--r-- | crates/ra_syntax/src/grammar/expressions/atom.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/grammar/expressions/atom.rs b/crates/ra_syntax/src/grammar/expressions/atom.rs index 5072d2c49..23f9b05bb 100644 --- a/crates/ra_syntax/src/grammar/expressions/atom.rs +++ b/crates/ra_syntax/src/grammar/expressions/atom.rs | |||
@@ -1,5 +1,4 @@ | |||
1 | use super::*; | 1 | use super::*; |
2 | use crate::grammar::paths::PATH_FIRST; | ||
3 | 2 | ||
4 | // test expr_literals | 3 | // test expr_literals |
5 | // fn foo() { | 4 | // fn foo() { |
@@ -37,7 +36,7 @@ pub(crate) fn literal(p: &mut Parser) -> Option<CompletedMarker> { | |||
37 | } | 36 | } |
38 | 37 | ||
39 | // E.g. for after the break in `if break {}`, this should not match | 38 | // E.g. for after the break in `if break {}`, this should not match |
40 | pub(super) const ATOM_EXPR_FIRST: TokenSet = LITERAL_FIRST.union(PATH_FIRST).union(token_set![ | 39 | pub(super) const ATOM_EXPR_FIRST: TokenSet = LITERAL_FIRST.union(paths::PATH_FIRST).union(token_set![ |
41 | L_PAREN, | 40 | L_PAREN, |
42 | L_CURLY, | 41 | L_CURLY, |
43 | L_BRACK, | 42 | L_BRACK, |