Skip to content

Commit

Permalink
Add a cast to fix 1.5
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
alexcrichton committed Dec 23, 2015
1 parent a0e0c09 commit a52fa17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fn set_file_times_(p: &Path, atime: FileTime, mtime: FileTime) -> io::Result<()>
let times = [to_timeval(&atime), to_timeval(&mtime)];
let p = try!(CString::new(p.as_os_str().as_bytes()));
return unsafe {
if utimes(p.as_ptr(), times.as_ptr()) == 0 {
if utimes(p.as_ptr() as *const _, times.as_ptr()) == 0 {
Ok(())
} else {
Err(io::Error::last_os_error())
Expand Down

0 comments on commit a52fa17

Please sign in to comment.