Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Jan 8, 2025
1 parent ef2c17e commit 0009f71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pumpkin/src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ where
if E::get_name_static() == event.get_name() {
// This is fully safe as long as the event's get_name() and get_name_static()
// functions are correctly implemented and don't conflict with other events
let event = unsafe { &mut *std::ptr::from_mut::<dyn std::any::Any>(event.as_any()).cast::<E>() };
let event = unsafe {
&mut *std::ptr::from_mut::<dyn std::any::Any>(event.as_any()).cast::<E>()
};
self.handler.handle(event).await;
}
}
Expand Down

0 comments on commit 0009f71

Please sign in to comment.