Skip to content

Commit 08cc8aa

Browse files
committed
Merge pull request #223 from Nercury/array-syntax-fallout
Array syntax fallout
2 parents fc04086 + 0270c82 commit 08cc8aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ fn read_token_until_space<R: Reader>(stream: &mut R, buf: &mut [u8]) -> HttpResu
370370
/// ### Note:
371371
/// Extension methods are only parsed to 16 characters.
372372
pub fn read_method<R: Reader>(stream: &mut R) -> HttpResult<method::Method> {
373-
let mut buf = [SP, ..16];
373+
let mut buf = [SP; 16];
374374

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

634-
let mut buf = [b' ', ..32];
634+
let mut buf = [b' '; 32];
635635

636636
{
637637
let mut bufwrt = BufWriter::new(&mut buf);

0 commit comments

Comments
 (0)