1
Fork 0

Register new snapshots

This commit is contained in:
Alex Crichton 2013-11-28 12:22:53 -08:00
parent 859c3baf64
commit ab387a6838
182 changed files with 1287 additions and 1334 deletions

View file

@ -875,11 +875,11 @@ impl Decoder {
fn expected(&self, expected: &str, found: &Json) -> ! {
let found_s = match *found {
Null => "null",
List(*) => "list",
Object(*) => "object",
Number(*) => "number",
String(*) => "string",
Boolean(*) => "boolean"
List(..) => "list",
Object(..) => "object",
Number(..) => "number",
String(..) => "string",
Boolean(..) => "boolean"
};
self.err(format!("expected {expct} but found {fnd}: {val}",
expct=expected, fnd=found_s, val=found.to_str()))