File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ pub fn start_program(prog: &str, args: &[~str]) -> Program {
290
290
291
291
fn read_all ( rd : io:: Reader ) -> ~str {
292
292
let buf = io:: with_bytes_writer ( |wr| {
293
- let mut bytes = [ mut 0 , ..4096 ] ;
293
+ let mut bytes = [ 0 , ..4096 ] ;
294
294
while !rd. eof ( ) {
295
295
let nread = rd. read ( bytes, bytes. len ( ) ) ;
296
296
wr. write ( bytes. view ( 0 , nread) ) ;
@@ -391,7 +391,7 @@ pub fn readclose(fd: c_int) -> ~str {
391
391
let file = os:: fdopen ( fd) ;
392
392
let reader = io:: FILE_reader ( file, false ) ;
393
393
let buf = io:: with_bytes_writer ( |writer| {
394
- let mut bytes = [ mut 0 , ..4096 ] ;
394
+ let mut bytes = [ 0 , ..4096 ] ;
395
395
while !reader. eof ( ) {
396
396
let nread = reader. read ( bytes, bytes. len ( ) ) ;
397
397
writer. write ( bytes. view ( 0 , nread) ) ;
You can’t perform that action at this time.
0 commit comments