diff options
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/event.rs | 3 | ||||
-rw-r--r-- | crates/ra_parser/src/grammar.rs | 2 | ||||
-rw-r--r-- | crates/ra_parser/src/parser.rs | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/crates/ra_parser/src/event.rs b/crates/ra_parser/src/event.rs index 51beb0866..a7d06a815 100644 --- a/crates/ra_parser/src/event.rs +++ b/crates/ra_parser/src/event.rs | |||
@@ -10,8 +10,9 @@ | |||
10 | use std::mem; | 10 | use std::mem; |
11 | 11 | ||
12 | use crate::{ | 12 | use crate::{ |
13 | ParseError, TreeSink, | 13 | ParseError, |
14 | SyntaxKind::{self, *}, | 14 | SyntaxKind::{self, *}, |
15 | TreeSink, | ||
15 | }; | 16 | }; |
16 | 17 | ||
17 | /// `Parser` produces a flat list of `Event`s. | 18 | /// `Parser` produces a flat list of `Event`s. |
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs index 5997636d6..658034097 100644 --- a/crates/ra_parser/src/grammar.rs +++ b/crates/ra_parser/src/grammar.rs | |||
@@ -37,9 +37,9 @@ mod type_params; | |||
37 | mod types; | 37 | mod types; |
38 | 38 | ||
39 | use crate::{ | 39 | use crate::{ |
40 | parser::{CompletedMarker, Marker, Parser}, | ||
40 | SyntaxKind::{self, *}, | 41 | SyntaxKind::{self, *}, |
41 | TokenSet, | 42 | TokenSet, |
42 | parser::{CompletedMarker, Marker, Parser}, | ||
43 | }; | 43 | }; |
44 | 44 | ||
45 | pub(crate) fn root(p: &mut Parser) { | 45 | pub(crate) fn root(p: &mut Parser) { |
diff --git a/crates/ra_parser/src/parser.rs b/crates/ra_parser/src/parser.rs index 8a2e253ac..159ed50df 100644 --- a/crates/ra_parser/src/parser.rs +++ b/crates/ra_parser/src/parser.rs | |||
@@ -3,10 +3,10 @@ use std::cell::Cell; | |||
3 | use drop_bomb::DropBomb; | 3 | use drop_bomb::DropBomb; |
4 | 4 | ||
5 | use crate::{ | 5 | use crate::{ |
6 | SyntaxKind::{self, ERROR, EOF, TOMBSTONE}, | ||
7 | TokenSource, ParseError, TokenSet, | ||
8 | event::Event, | 6 | event::Event, |
9 | T | 7 | ParseError, |
8 | SyntaxKind::{self, EOF, ERROR, TOMBSTONE}, | ||
9 | TokenSet, TokenSource, T, | ||
10 | }; | 10 | }; |
11 | 11 | ||
12 | /// `Parser` struct provides the low-level API for | 12 | /// `Parser` struct provides the low-level API for |