diff options
Diffstat (limited to 'src/parser/parser.rs')
-rw-r--r-- | src/parser/parser.rs | 11 |
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 | ||
189 | impl<'t, 'p> ErrorBuilder<'p, 't> { | 189 | impl<'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 | } |