From 296c851a119d6497f67699d49268b79b054e2e2d Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 12 Oct 2021 21:55:36 +0200 Subject: [PATCH] Remove `pub` keywords --- examples/buttons/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/buttons/src/main.rs b/examples/buttons/src/main.rs index c935d8e9..4d0aead2 100644 --- a/examples/buttons/src/main.rs +++ b/examples/buttons/src/main.rs @@ -10,7 +10,7 @@ use tokio_stream::wrappers::UnboundedReceiverStream; #[derive(BotCommand)] #[command(rename = "lowercase", description = "These commands are supported:")] -pub enum Command { +enum Command { #[command(description = "Display this text")] Help, #[command(description = "Start")] @@ -40,7 +40,7 @@ fn make_keyboard(chat_id: i64) -> InlineKeyboardMarkup { /// Parse the text wrote on Telegram and check if that text is a valid command /// or not, then match the command. If the command is `/start` it writes a /// markup with the `InlineKeyboardMarkup`. -pub async fn query_handler( +async fn query_handler( cx: UpdateWithCx, Message>, ) -> Result<(), Box> { if let Ok(command) =