better handlers

This commit is contained in:
2025-07-05 06:48:21 +02:00
parent 661756eccd
commit cec25c02d5
4 changed files with 62 additions and 20 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ macro_rules! event {
#[derive(Debug, Clone)]
pub struct $name;
impl $crate::events::Event for $name {
impl $crate::extensions::Event for $name {
fn as_any(&self) -> &dyn std::any::Any {
self
}
@@ -17,7 +17,7 @@ macro_rules! event {
$($inner)*
}
impl $crate::events::Event for $name {
impl $crate::extensions::Event for $name {
fn as_any(&self) -> &dyn std::any::Any {
self
}
@@ -28,7 +28,7 @@ macro_rules! event {
#[derive(Debug, Clone)]
pub struct $name ($($inner)*);
impl $crate::events::Event for $name {
impl $crate::extensions::Event for $name {
fn as_any(&self) -> &dyn std::any::Any {
self
}