From 708106ab95ce4ff0b95ed8630c6e6bc1ef7274d2 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sun, 15 Dec 2024 17:51:36 +0100 Subject: [PATCH] events: fix variant panic message --- src/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } }