Fix compiling json
This commit is contained in:
parent
b62bb24751
commit
2a40b4e810
@ -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<()> {
|
||||
static LEN: uint = 16;
|
||||
static BUF: [u8, ..LEN] = [b' ', ..LEN];
|
||||
const LEN: uint = 16;
|
||||
const BUF: [u8, ..LEN] = [b' ', ..LEN];
|
||||
|
||||
while n >= LEN {
|
||||
try!(wr.write(BUF));
|
||||
|
Loading…
x
Reference in New Issue
Block a user