mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-11 23:11:02 +00:00
Fix compiling json
This commit is contained in:
+2
-2
@@ -906,8 +906,8 @@ fn fmt_f64_or_null<W: Writer>(wr: &mut W, v: f64) -> IoResult<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn spaces<W: Writer>(wr: &mut W, mut n: uint) -> IoResult<()> {
|
fn spaces<W: Writer>(wr: &mut W, mut n: uint) -> IoResult<()> {
|
||||||
static LEN: uint = 16;
|
const LEN: uint = 16;
|
||||||
static BUF: [u8, ..LEN] = [b' ', ..LEN];
|
const BUF: [u8, ..LEN] = [b' ', ..LEN];
|
||||||
|
|
||||||
while n >= LEN {
|
while n >= LEN {
|
||||||
try!(wr.write(BUF));
|
try!(wr.write(BUF));
|
||||||
|
|||||||
Reference in New Issue
Block a user