From 0009f716e7ad8c521f121dcb773b2972140a5bd9 Mon Sep 17 00:00:00 2001 From: vyPal Date: Wed, 8 Jan 2025 10:50:59 +0100 Subject: [PATCH] cargo fmt --- pumpkin/src/plugin/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }