aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/partial_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/construct/partial_data.rs')
-rw-r--r--src/construct/partial_data.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/construct/partial_data.rs b/src/construct/partial_data.rs
index fcd142d..600fea6 100644
--- a/src/construct/partial_data.rs
+++ b/src/construct/partial_data.rs
@@ -74,8 +74,6 @@ pub fn inside(tokenizer: &mut Tokenizer) -> State {
/// Merge adjacent data events.
pub fn resolve(tokenizer: &mut Tokenizer) -> Option<Subresult> {
- tokenizer.map.consume(&mut tokenizer.events);
-
let mut index = 0;
// Loop through events and merge adjacent data events.
@@ -107,5 +105,6 @@ pub fn resolve(tokenizer: &mut Tokenizer) -> Option<Subresult> {
index += 1;
}
+ tokenizer.map.consume(&mut tokenizer.events);
None
}