Skip to content

Commit

Permalink
iOS: os::last_os_error() fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
vhbit committed Apr 1, 2015
1 parent 8943653 commit 28d7693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/rand/os.rs
Expand Up @@ -185,9 +185,9 @@ mod imp {
mod imp {
use prelude::v1::*;

use io;
use old_io::IoResult;
use mem;
use os;
use rand::Rng;
use libc::{c_int, size_t};

Expand Down Expand Up @@ -241,7 +241,7 @@ mod imp {
SecRandomCopyBytes(kSecRandomDefault, v.len() as size_t, v.as_mut_ptr())
};
if ret == -1 {
panic!("couldn't generate random bytes: {}", os::last_os_error());
panic!("couldn't generate random bytes: {}", io::Error::last_os_error());
}
}
}
Expand Down

0 comments on commit 28d7693

Please sign in to comment.