Skip to content

Commit 28d7693

Browse files
committed
iOS: os::last_os_error() fallout
1 parent 8943653 commit 28d7693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rand/os.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ mod imp {
185185
mod imp {
186186
use prelude::v1::*;
187187

188+
use io;
188189
use old_io::IoResult;
189190
use mem;
190-
use os;
191191
use rand::Rng;
192192
use libc::{c_int, size_t};
193193

@@ -241,7 +241,7 @@ mod imp {
241241
SecRandomCopyBytes(kSecRandomDefault, v.len() as size_t, v.as_mut_ptr())
242242
};
243243
if ret == -1 {
244-
panic!("couldn't generate random bytes: {}", os::last_os_error());
244+
panic!("couldn't generate random bytes: {}", io::Error::last_os_error());
245245
}
246246
}
247247
}

0 commit comments

Comments
 (0)