Merge pull request #19 from tomprogrammer/fix-json-object-delimiter

Fix the json object delimiters
This commit is contained in:
Erick Tryzelaar 2015-02-16 12:29:19 -08:00
commit 4e4172ec85

View File

@ -165,11 +165,11 @@ impl<'a, W: old_io::Writer> ser::Visitor for Visitor<'a, W> {
fn visit_map<V>(&mut self, mut visitor: V) -> Result<(), IoError> fn visit_map<V>(&mut self, mut visitor: V) -> Result<(), IoError>
where V: ser::MapVisitor, where V: ser::MapVisitor,
{ {
try!(self.writer.write_str("{{")); try!(self.writer.write_str("{"));
while let Some(()) = try!(visitor.visit(self)) { } while let Some(()) = try!(visitor.visit(self)) { }
self.writer.write_str("}}") self.writer.write_str("}")
} }
#[inline] #[inline]