Fix compiling json

This commit is contained in:
Erick Tryzelaar committed 2014-10-23 10:26:52 -07:00
1 parent b62bb24751
commit 2a40b4e810
1 file changed
+2 -2
+2 -2
View File
@@ -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));