Remove unnecessary Box from support_command_handler argument
Some checks are pending
Build docker image / Build-Docker-Image (push) Waiting to run

This commit is contained in:
2025-06-22 00:10:30 +02:00
parent 8a35390150
commit 39ff5f01e7
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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(_) => {}
} }