mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Remove unnecessary Box from support_command_handler argument
Some checks are pending
Build docker image / Build-Docker-Image (push) Waiting to run
Some checks are pending
Build docker image / Build-Docker-Image (push) Waiting to run
This commit is contained in:
@@ -15,7 +15,7 @@ enum SupportCommand {
|
||||
}
|
||||
|
||||
pub async fn support_command_handler(
|
||||
message: Box<Message>,
|
||||
message: Message,
|
||||
bot: CacheMe<Throttle<Bot>>,
|
||||
) -> BotHandlerInternal {
|
||||
let username = match message.clone().from {
|
||||
|
||||
@@ -35,7 +35,7 @@ pub async fn send_donation_notification(
|
||||
|
||||
match message {
|
||||
MaybeInaccessibleMessage::Regular(message) => {
|
||||
support_command_handler(message, bot).await?;
|
||||
support_command_handler(*message, bot).await?;
|
||||
}
|
||||
MaybeInaccessibleMessage::Inaccessible(_) => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user