diff --git a/pumpkin/src/plugin/mod.rs b/pumpkin/src/plugin/mod.rs index b749dcd3..b9670993 100644 --- a/pumpkin/src/plugin/mod.rs +++ b/pumpkin/src/plugin/mod.rs @@ -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::(event.as_any()).cast::() }; + let event = unsafe { + &mut *std::ptr::from_mut::(event.as_any()).cast::() + }; self.handler.handle(event).await; } }