libcore: De-mode str
This commit is contained in:
@@ -104,7 +104,7 @@ fn readclose(fd: c_int) -> ~str {
|
||||
let mut buf = ~"";
|
||||
while !reader.eof() {
|
||||
let bytes = reader.read_bytes(4096u);
|
||||
str::push_str(buf, str::from_bytes(bytes));
|
||||
str::push_str(&mut buf, str::from_bytes(bytes));
|
||||
}
|
||||
os::fclose(file);
|
||||
return buf;
|
||||
|
||||
Reference in New Issue
Block a user