diff --git a/src/events.rs b/src/events.rs index 290f5d2..fb63ac6 100644 --- a/src/events.rs +++ b/src/events.rs @@ -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) } } }