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 committed Feb 14, 2024
1 parent fb39f02 commit 79b3a5c
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 79b3a5c

Please sign in to comment.