mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +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(
|
pub async fn support_command_handler(
|
||||||
message: Box<Message>,
|
message: Message,
|
||||||
bot: CacheMe<Throttle<Bot>>,
|
bot: CacheMe<Throttle<Bot>>,
|
||||||
) -> BotHandlerInternal {
|
) -> BotHandlerInternal {
|
||||||
let username = match message.clone().from {
|
let username = match message.clone().from {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ pub async fn send_donation_notification(
|
|||||||
|
|
||||||
match message {
|
match message {
|
||||||
MaybeInaccessibleMessage::Regular(message) => {
|
MaybeInaccessibleMessage::Regular(message) => {
|
||||||
support_command_handler(message, bot).await?;
|
support_command_handler(*message, bot).await?;
|
||||||
}
|
}
|
||||||
MaybeInaccessibleMessage::Inaccessible(_) => {}
|
MaybeInaccessibleMessage::Inaccessible(_) => {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user