events: fix variant panic message

This commit is contained in:
Torrie Fischer 2024-12-15 17:51:36 +01:00
parent 2afbc713ce
commit 708106ab95

View File

@ -28,7 +28,7 @@ macro_rules! impl_variant_type {
fn into(self) -> $type {
match self {
Variant::$var_type(value) => value,
_ => panic!("Expected Variant::$var_type, but got {:?}", self)
_ => panic!(concat!("Expected Variant::", stringify!($var_type), "but got {:?}"), self)
}
}
}