aboutsummaryrefslogtreecommitdiff
path: root/src/parser/parser.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-09 19:55:50 +0000
committerAleksey Kladov <[email protected]>2018-02-09 19:55:50 +0000
commitac932df22a993f0b287e60aa42055405ef94a6ae (patch)
tree4d53f6d5e34a4244f0aaeb2039454e3594856324 /src/parser/parser.rs
parent0ae26c344aa7477a18c2019cfa0062a9a745d70d (diff)
reformat
Diffstat (limited to 'src/parser/parser.rs')
-rw-r--r--src/parser/parser.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/parser/parser.rs b/src/parser/parser.rs
index 069701483..7c8e47cb6 100644
--- a/src/parser/parser.rs
+++ b/src/parser/parser.rs
@@ -27,9 +27,9 @@ impl Marker {
27 if idx == p.events.len() - 1 { 27 if idx == p.events.len() - 1 {
28 match p.events.pop() { 28 match p.events.pop() {
29 Some(Event::Start { 29 Some(Event::Start {
30 kind: TOMBSTONE, 30 kind: TOMBSTONE,
31 forward_parent: None, 31 forward_parent: None,
32 }) => (), 32 }) => (),
33 _ => unreachable!(), 33 _ => unreachable!(),
34 } 34 }
35 } 35 }
@@ -188,9 +188,6 @@ impl<'p, 't: 'p> Drop for ErrorBuilder<'p, 't> {
188 188
189impl<'t, 'p> ErrorBuilder<'p, 't> { 189impl<'t, 'p> ErrorBuilder<'p, 't> {
190 fn new(parser: &'p mut Parser<'t>, message: String) -> Self { 190 fn new(parser: &'p mut Parser<'t>, message: String) -> Self {
191 ErrorBuilder { 191 ErrorBuilder { message, parser }
192 message,
193 parser,
194 }
195 } 192 }
196} 193}