From e7a2688b7ed59d68bff8a5868fbcf142150f7070 Mon Sep 17 00:00:00 2001 From: Stanislav Panferov Date: Sat, 11 Oct 2014 11:00:10 +0400 Subject: [PATCH] Use `const` instead of `static` --- src/http.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/http.rs b/src/http.rs index 6faf12ec..31ce12b7 100644 --- a/src/http.rs +++ b/src/http.rs @@ -205,11 +205,11 @@ impl Writer for HttpWriter { } } -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. ///