Skip to content

Commit

Permalink
Update libparsec/crates/client/src/event_bus.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Marcos Medrano <786907+mmmarcos@users.noreply.github.com>
  • Loading branch information
FirelightFlagboy and mmmarcos authored Sep 6, 2023
1 parent 6ec2db7 commit 840a2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libparsec/crates/client/src/event_bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ macro_rules! impl_broadcastable {
// see: https://github.com/rust-lang/rust/issues/106447
// So the solution is to manually transform the fat pointer into
// a thin one (i.e. the pointer on the data)
let e_fat_ptf: *const _ = e.as_ref();
let e_thin_ptr = e_fat_ptf as *const () as usize;
let e_fat_ptr: *const _ = e.as_ref();
let e_thin_ptr = e_fat_ptr as *const () as usize;
e_thin_ptr == ptr
})
.map(|index| guard.swap_remove(index));
Expand Down

0 comments on commit 840a2fc

Please sign in to comment.