events: fix variant panic message
This commit is contained in:
parent
2afbc713ce
commit
708106ab95
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user