mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-21 19:26:17 +00:00
Fix the json object delimiters
Write "{" instead of "{{". Same for the counterpart.
This commit is contained in:
1 parent
a995e16995
commit
d43946b6a6
1 file changed
+2
-2
@@ -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>
|
||||
where V: ser::MapVisitor,
|
||||
{
|
||||
try!(self.writer.write_str("{{"));
|
||||
try!(self.writer.write_str("{"));
|
||||
|
||||
while let Some(()) = try!(visitor.visit(self)) { }
|
||||
|
||||
self.writer.write_str("}}")
|
||||
self.writer.write_str("}")
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in new issue
Block a user