Convert all uses of unsafe_from_bytes to unsafe_from_bytes_ivec

This commit is contained in:
Brian Anderson 2011-08-11 17:02:13 -07:00
parent 49b80f9bf7
commit a9ce342fa3
11 changed files with 27 additions and 31 deletions

View file

@ -103,8 +103,8 @@ fn start_program(prog: str, args: vec[str]) -> @program_res {
fn read_all(rd: &io::reader) -> str {
let buf = "";
while !rd.eof() {
let bytes = rd.read_bytes(4096u);
buf += str::unsafe_from_bytes(bytes);
let bytes = ivec::from_vec(rd.read_bytes(4096u));
buf += str::unsafe_from_bytes_ivec(bytes);
}
ret buf;
}