RIMOV core::run
This commit is contained in:
parent
e58c812f77
commit
2d2ed075e3
1 changed files with 2 additions and 2 deletions
|
|
@ -290,7 +290,7 @@ pub fn start_program(prog: &str, args: &[~str]) -> Program {
|
|||
|
||||
fn read_all(rd: io::Reader) -> ~str {
|
||||
let buf = io::with_bytes_writer(|wr| {
|
||||
let mut bytes = [mut 0, ..4096];
|
||||
let mut bytes = [0, ..4096];
|
||||
while !rd.eof() {
|
||||
let nread = rd.read(bytes, bytes.len());
|
||||
wr.write(bytes.view(0, nread));
|
||||
|
|
@ -391,7 +391,7 @@ pub fn readclose(fd: c_int) -> ~str {
|
|||
let file = os::fdopen(fd);
|
||||
let reader = io::FILE_reader(file, false);
|
||||
let buf = io::with_bytes_writer(|writer| {
|
||||
let mut bytes = [mut 0, ..4096];
|
||||
let mut bytes = [0, ..4096];
|
||||
while !reader.eof() {
|
||||
let nread = reader.read(bytes, bytes.len());
|
||||
writer.write(bytes.view(0, nread));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue