We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a899f7 commit b0f88c1Copy full SHA for b0f88c1
src/sync.rs
@@ -8,6 +8,7 @@
8
use super::*;
9
use block::{Block, RcBlock};
10
use std::mem;
11
+use std::ptr;
12
13
#[cfg(feature = "dispatch_queue")]
14
use dispatch;
@@ -63,7 +64,7 @@ impl SharedEventRef {
63
64
*mut BlockBase<(&SharedEventRef, u64), ()>,
65
>(block);
66
(*block).flags |= BLOCK_HAS_SIGNATURE | BLOCK_HAS_COPY_DISPOSE;
- (*block).extra = &BLOCK_EXTRA;
67
+ (*block).extra = ptr::addr_of!(BLOCK_EXTRA);
68
let () = msg_send![self, notifyListener:listener atValue:value block:block];
69
}
70
0 commit comments