From 492d587a338f2b110bd894b751bef00d01f7d251 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 11 Jul 2024 06:23:19 +0200 Subject: [PATCH] Lint: remove useless format --- src/telegram/commands/start.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram/commands/start.rs b/src/telegram/commands/start.rs index 6673b707..8a221925 100644 --- a/src/telegram/commands/start.rs +++ b/src/telegram/commands/start.rs @@ -15,7 +15,7 @@ pub async fn handler(bot: &Bot, message: &Message) -> CommandResult { let author_username = match author.username.as_ref() { None => { - format!("{}", &author.first_name) + author.first_name.clone() }, Some(username) => { format!("@{}", &username)