1
Fork 0

json tidy

This commit is contained in:
John Clements 2013-02-08 18:58:33 -08:00
parent c952c04462
commit 7736ed6c62

View file

@ -141,9 +141,10 @@ pub impl Encoder: serialize::Encoder {
// can't be followed by just a comma, because there might not
// be any elements in the tuple.
// FIXME : this would be more precise and less frightening
// this would be more precise and less frightening
// with fully-qualified option names. To get that information,
// we'd have to change the expansion of auto-encode to pass those along.
// we'd have to change the expansion of auto-encode to pass
// those along.
if (name == ~"Some") {
f();
@ -170,6 +171,7 @@ pub impl Encoder: serialize::Encoder {
f();
self.wr.write_char(']');
}
fn emit_owned_vec(&self, len: uint, f: fn()) {
self.emit_borrowed_vec(len, f)
}