From f0fffa7125fe899eff5087c7161784f99b3e1bf1 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Sun, 13 Mar 2022 17:41:06 +0400 Subject: [PATCH] Rename `BotCommand` -> `BotCommands` --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c17bbfa6..7a3c442a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -206,7 +206,7 @@ macro_rules! get_or_return { } } -#[proc_macro_derive(BotCommand, attributes(command))] +#[proc_macro_derive(BotCommands, attributes(command))] pub fn derive_telegram_command_enum(tokens: TokenStream) -> TokenStream { let input = parse_macro_input!(tokens as DeriveInput); @@ -270,7 +270,7 @@ pub fn derive_telegram_command_enum(tokens: TokenStream) -> TokenStream { let fn_commands = impl_commands(&variant_infos, &command_enum); let trait_impl = quote! { - impl BotCommand for #ident { + impl BotCommands for #ident { #fn_descriptions #fn_parse #fn_commands