iOS: os::last_os_error() fallout
This commit is contained in:
parent
8943653624
commit
28d7693930
1 changed files with 2 additions and 2 deletions
|
@ -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};
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue