mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
fix error message
This commit is contained in:
parent
66ee68c13b
commit
5d39e3c06d
1 changed files with 1 additions and 1 deletions
|
@ -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")),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue