diff options
| author | Valerii Hiora <valerii.hiora@gmail.com> | 2015-02-24 16:44:30 +0200 |
|---|---|---|
| committer | Valerii Hiora <valerii.hiora@gmail.com> | 2015-02-24 16:46:44 +0200 |
| commit | 01385a237fb6f4d80fbeb0f469caeb32075e22f9 (patch) | |
| tree | 8a382b10338e305038b1cef48f29576a0692da10 /src/libstd | |
| parent | dccdde4007c191aa8b8d9cfffb0c7d3509fa675e (diff) | |
| download | rust-01385a237fb6f4d80fbeb0f469caeb32075e22f9.tar.gz rust-01385a237fb6f4d80fbeb0f469caeb32075e22f9.zip | |
iOS: Sync/Send fallout
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rand/os.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs index 0e2766f3889..1a13405633d 100644 --- a/src/libstd/rand/os.rs +++ b/src/libstd/rand/os.rs @@ -188,7 +188,6 @@ mod imp { extern crate libc; use old_io::{IoResult}; - use marker::Sync; use mem; use os; use rand::Rng; @@ -214,10 +213,8 @@ mod imp { #[repr(C)] struct SecRandom; - unsafe impl Sync for *const SecRandom {} - #[allow(non_upper_case_globals)] - static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom; + const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom; #[link(name = "Security", kind = "framework")] extern "C" { |
