Skip to content

Commit

Permalink
Merge pull request hyperium#223 from Nercury/array-syntax-fallout
Browse files Browse the repository at this point in the history
Array syntax fallout
  • Loading branch information
seanmonstar committed Jan 2, 2015
2 parents fc04086 + 0270c82 commit 08cc8aa
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 08cc8aa

Please sign in to comment.