From aaf4b9b49e8601987f583226cf4df91f2df9f56f Mon Sep 17 00:00:00 2001 From: Nathan Lilienthal Date: Sat, 27 Feb 2016 14:03:44 -0500 Subject: [PATCH] Eat on errors, fixes problem with StreamDeserializer. --- json/src/de.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/json/src/de.rs b/json/src/de.rs index 2f5cd0a82..5dbab9dff 100644 --- a/json/src/de.rs +++ b/json/src/de.rs @@ -162,6 +162,7 @@ impl Deserializer visitor.visit_map(MapVisitor::new(self)) } _ => { + self.eat_char(); Err(self.error(ErrorCode::ExpectedSomeValue)) } };