Skip to content

Commit 5ede96c

Browse files
committed
Test fixes from rollup
1 parent 24cbe38 commit 5ede96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libnative/io/file_win32.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::mem;
1818
use std::os::win32::fill_utf16_buf_and_decode;
1919
use std::ptr;
2020
use std::rt::rtio;
21-
use std::rt::rtio::IoResult;
21+
use std::rt::rtio::{IoResult, IoError};
2222
use std::str;
2323
use std::vec;
2424

@@ -412,7 +412,7 @@ pub fn rename(old: &CString, new: &CString) -> IoResult<()> {
412412
pub fn chmod(p: &CString, mode: uint) -> IoResult<()> {
413413
let p = try!(to_utf16(p));
414414
super::mkerr_libc(unsafe {
415-
libc::wchmod(p.as_ptr(), mode.bits() as libc::c_int)
415+
libc::wchmod(p.as_ptr(), mode as libc::c_int)
416416
})
417417
}
418418

0 commit comments

Comments
 (0)