Use const instead of static

This commit is contained in:
Stanislav Panferov
2014-10-11 11:00:10 +04:00
parent 119ca21f30
commit e7a2688b7e

View File

@@ -205,11 +205,11 @@ impl<W: Writer> Writer for HttpWriter<W> {
}
}
pub static SP: u8 = b' ';
pub static CR: u8 = b'\r';
pub static LF: u8 = b'\n';
pub static STAR: u8 = b'*';
pub static LINE_ENDING: &'static [u8] = &[CR, LF];
pub const SP: u8 = b' ';
pub const CR: u8 = b'\r';
pub const LF: u8 = b'\n';
pub const STAR: u8 = b'*';
pub const LINE_ENDING: &'static [u8] = &[CR, LF];
/// Determines if byte is a token char.
///