mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-22 06:45:37 +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> {
|
fn get_enum_data(input: &DeriveInput) -> Result<&syn::DataEnum> {
|
||||||
match &input.data {
|
match &input.data {
|
||||||
syn::Data::Enum(data) => Ok(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…
Add table
Reference in a new issue