continue to annotate functions as unsafe where neccessary

This commit is contained in:
Niko Matsakis
2011-10-10 15:16:55 -07:00
committed by Brian Anderson
parent f2cd33df72
commit 85da98db4a
6 changed files with 22 additions and 23 deletions

View File

@@ -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));