From 2a40b4e8102817596051bd8513c15f644331bbf6 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 14 Oct 2014 18:08:13 -0700 Subject: [PATCH] Fix compiling json --- src/json/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json/mod.rs b/src/json/mod.rs index a4b1fd30..c6750cd8 100644 --- a/src/json/mod.rs +++ b/src/json/mod.rs @@ -906,8 +906,8 @@ fn fmt_f64_or_null(wr: &mut W, v: f64) -> IoResult<()> { } fn spaces(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));