continue to annotate functions as unsafe where neccessary
This commit is contained in:
parent
f2cd33df72
commit
85da98db4a
6 changed files with 22 additions and 23 deletions
|
|
@ -70,7 +70,7 @@ fn run(handle: handle, lib_path: str, prog: str, args: [str],
|
|||
ret {status: status, out: output, err: errput};
|
||||
}
|
||||
|
||||
fn writeclose(fd: int, s: option::t<str>) {
|
||||
fn writeclose(fd: int, s: option::t<str>) unsafe {
|
||||
if option::is_some(s) {
|
||||
let writer = io::new_writer(io::fd_buf_writer(fd, option::none));
|
||||
writer.write_str(option::get(s));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue