Skip to content

Commit 01385a2

Browse files
committed
iOS: Sync/Send fallout
1 parent dccdde4 commit 01385a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libstd/rand/os.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ mod imp {
188188
extern crate libc;
189189

190190
use old_io::{IoResult};
191-
use marker::Sync;
192191
use mem;
193192
use os;
194193
use rand::Rng;
@@ -214,10 +213,8 @@ mod imp {
214213
#[repr(C)]
215214
struct SecRandom;
216215

217-
unsafe impl Sync for *const SecRandom {}
218-
219216
#[allow(non_upper_case_globals)]
220-
static kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
217+
const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;
221218

222219
#[link(name = "Security", kind = "framework")]
223220
extern "C" {

0 commit comments

Comments
 (0)