Skip to content

Commit

Permalink
fix static mutable reference warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyran authored and grovesNL committed Feb 14, 2024
1 parent 3a899f7 commit b0f88c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use super::*;
use block::{Block, RcBlock};
use std::mem;
use std::ptr;

#[cfg(feature = "dispatch_queue")]
use dispatch;
Expand Down Expand Up @@ -63,7 +64,7 @@ impl SharedEventRef {
*mut BlockBase<(&SharedEventRef, u64), ()>,
>(block);
(*block).flags |= BLOCK_HAS_SIGNATURE | BLOCK_HAS_COPY_DISPOSE;
(*block).extra = &BLOCK_EXTRA;
(*block).extra = ptr::addr_of!(BLOCK_EXTRA);
let () = msg_send![self, notifyListener:listener atValue:value block:block];
}

Expand Down

0 comments on commit b0f88c1

Please sign in to comment.