Skip to content

Commit

Permalink
Update to use new array syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nercury committed Jan 2, 2015
1 parent fc04086 commit 0270c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ fn read_token_until_space<R: Reader>(stream: &mut R, buf: &mut [u8]) -> HttpResu
/// ### Note:
/// Extension methods are only parsed to 16 characters.
pub fn read_method<R: Reader>(stream: &mut R) -> HttpResult<method::Method> {
let mut buf = [SP, ..16];
let mut buf = [SP; 16];

if !try!(read_token_until_space(stream, &mut buf)) {
return Err(HttpMethodError);
Expand Down Expand Up @@ -631,7 +631,7 @@ pub fn read_status<R: Reader>(stream: &mut R) -> HttpResult<RawStatus> {
_ => return Err(HttpStatusError)
}

let mut buf = [b' ', ..32];
let mut buf = [b' '; 32];

{
let mut bufwrt = BufWriter::new(&mut buf);
Expand Down

0 comments on commit 0270c82

Please sign in to comment.