summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de/parse.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/de/parse.rs b/src/de/parse.rs
index ffd1a3f..75ae134 100644
--- a/src/de/parse.rs
+++ b/src/de/parse.rs
@@ -333,6 +333,11 @@ impl<'a> Parser<'a> {
}
}
}
+ // Skip empty byte sequences (e.g. leading `&`, trailing `&`, `&&`, ...)
+ b'&' => {
+ self.clear_acc();
+ Ok(true)
+ }
// This means the key should be a root key
// of the form "abc" or "abc[..=]"
// We do actually allow integer keys here since they cannot