summary refs log tree commit diff
path: root/src/libserialize
diff options
context:
space:
mode:
authorP1start <rewi-github@whanau.org>2014-09-13 13:55:37 +1200
committerP1start <rewi-github@whanau.org>2014-10-03 20:39:56 +1300
commit94bcd3539c761b4ecf423800bce21057c4e961fa (patch)
tree51c0030bfc0a527ce57da49f0987f726ea0ed912 /src/libserialize
parentaa034cd3bac3155e0f6c74c399314b5ee32f88fc (diff)
downloadrust-94bcd3539c761b4ecf423800bce21057c4e961fa.tar.gz
rust-94bcd3539c761b4ecf423800bce21057c4e961fa.zip
Set the `non_uppercase_statics` lint to warn by default
Diffstat (limited to 'src/libserialize')
-rw-r--r--src/libserialize/json.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs
index 3007e160bf8..654278cf81b 100644
--- a/src/libserialize/json.rs
+++ b/src/libserialize/json.rs
@@ -360,7 +360,9 @@ fn escape_char(writer: &mut io::Writer, v: char) -> Result<(), io::IoError> {
 }
 
 fn spaces(wr: &mut io::Writer, mut n: uint) -> Result<(), io::IoError> {
+    #[allow(non_uppercase_statics)]
     static len: uint = 16;
+    #[allow(non_uppercase_statics)]
     static buf: [u8, ..len] = [b' ', ..len];
 
     while n >= len {