Update for IO changes

This commit is contained in:
Steven Fackler 2014-04-07 23:29:37 -07:00
parent a145df011c
commit f6ce65ca31
1 changed files with 1 additions and 1 deletions

View File

@ -157,5 +157,5 @@ fn test_read() {
stream.write("GET /\r\n\r\n".as_bytes()).unwrap(); stream.write("GET /\r\n\r\n".as_bytes()).unwrap();
stream.flush().unwrap(); stream.flush().unwrap();
let buf = stream.read_to_end().ok().expect("read error"); let buf = stream.read_to_end().ok().expect("read error");
print!("{}", str::from_utf8(buf)); print!("{}", str::from_utf8(buf.as_slice()));
} }