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

@ -278,7 +278,7 @@ fn json_input(input: &str) -> Result<Output, ~str> {
version {}", SCHEMA_VERSION))
}
}
Some(*) => return Err(~"malformed json"),
Some(..) => return Err(~"malformed json"),
None => return Err(~"expected a schema version"),
}
let crate = match obj.pop(&~"crate") {
@ -293,7 +293,7 @@ fn json_input(input: &str) -> Result<Output, ~str> {
let plugin_output = ~[];
Ok((crate, plugin_output))
}
Ok(*) => Err(~"malformed json input: expected an object at the top"),
Ok(..) => Err(~"malformed json input: expected an object at the top"),
}
}