aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/parser_impl/event.rs
diff options
context:
space:
mode:
authorAdolfo OchagavĂ­a <[email protected]>2018-11-05 21:29:33 +0000
committerAdolfo OchagavĂ­a <[email protected]>2018-11-05 21:29:33 +0000
commit59405bfe4ad0afa0b7ff533c7bfbc3ad4170604c (patch)
tree7fd21d42603420b53c4096180888d68bcf0b26ae /crates/ra_syntax/src/parser_impl/event.rs
parentfda8ddc5fe8a764c0dc91fecb92af1bdf3078485 (diff)
cargo format
Diffstat (limited to 'crates/ra_syntax/src/parser_impl/event.rs')
-rw-r--r--crates/ra_syntax/src/parser_impl/event.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/parser_impl/event.rs b/crates/ra_syntax/src/parser_impl/event.rs
index 1445401bc..bf9c1cef0 100644
--- a/crates/ra_syntax/src/parser_impl/event.rs
+++ b/crates/ra_syntax/src/parser_impl/event.rs
@@ -162,9 +162,10 @@ impl<'a, S: Sink> EventProcessor<'a, S> {
162 .sum::<TextUnit>(); 162 .sum::<TextUnit>();
163 self.leaf(kind, len, n_raw_tokens); 163 self.leaf(kind, len, n_raw_tokens);
164 } 164 }
165 Event::Error { msg } => self.sink.error( 165 Event::Error { msg } => self.sink.error(SyntaxError::new(
166 SyntaxError::new(SyntaxErrorKind::ParseError(msg), self.text_pos), 166 SyntaxErrorKind::ParseError(msg),
167 ), 167 self.text_pos,
168 )),
168 } 169 }
169 } 170 }
170 self.sink 171 self.sink