Update for Rust 1.5

This commit is contained in:
Mohd Tarmizi 2015-12-12 20:20:25 +08:00
parent 3fbd635807
commit 5f295b61ea
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ impl Request {
continue; continue;
} }
if content.is_empty() { if content.is_empty() {
params.extend(try!(read_pairs(&mut Cursor::new(buf.as_ref())))); params.extend(try!(read_pairs(&mut Cursor::new(&buf))));
break; break;
} else { } else {
buf.extend(content); buf.extend(content);