fix error message

This commit is contained in:
Maybe Waffle 2022-08-25 18:06:41 +04:00
parent 66ee68c13b
commit 5d39e3c06d

View file

@ -164,6 +164,6 @@ fn impl_parse(
fn get_enum_data(input: &DeriveInput) -> Result<&syn::DataEnum> {
match &input.data {
syn::Data::Enum(data) => Ok(data),
_ => Err(compile_error("TelegramBotCommand allowed only for enums")),
_ => Err(compile_error("`BotCommands` is only allowed for enums")),
}
}