Use type inference!

This commit is contained in:
Elly Jones 2011-11-09 19:42:55 -05:00 committed by Brian Anderson
parent 91e04f7dd2
commit 864672bb84

View File

@ -127,7 +127,7 @@ fn make_dir(p: path, mode: int) -> bool {
#[cfg(target_os = "win32")] #[cfg(target_os = "win32")]
fn mkdir(_p: path, _mode: int) -> bool { fn mkdir(_p: path, _mode: int) -> bool {
// FIXME: turn mode into something useful? // FIXME: turn mode into something useful?
let noctx = ptr::null<os::kernel32::LPSECURITY_ATTRIBUTES>(); let noctx = ptr::null();
ret str::as_buf(_p, {|buf| ret str::as_buf(_p, {|buf|
os::kernel32::CreateDirectory(buf, noctx) os::kernel32::CreateDirectory(buf, noctx)
}); });