]> git.lizzy.rs Git - rust.git/commit
JSON cleanup
authorAdolfo Ochagavía <aochagavia92@gmail.com>
Sat, 28 Jun 2014 12:34:58 +0000 (14:34 +0200)
committerAdolfo Ochagavía <aochagavia92@gmail.com>
Mon, 30 Jun 2014 19:35:45 +0000 (21:35 +0200)
commit4c65a86571420ba79bc00028460e9625484e151a
tree3f9888ebe6260e31600c8a977a124404d3e2d7d7
parent94343da1bdf4de84d0ece90d920400697ad7e143
JSON cleanup

* Tried to make the code more idiomatic
* Renamed the `wr` field of the `Encoder` and `PrettyEncoder` structs to `writer`
* Replaced some `from_utf8` by `from_utf8_owned` to avoid unnecessary allocations
* Removed unnecessary `unsafe` code
src/libserialize/json.rs