1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-21 18:44:19 +00:00

Lint: remove unnecessary .to_string() call

This commit is contained in:
Steffo 2024-07-11 06:30:41 +02:00
parent c112f5da48
commit 341ef980d1
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -73,7 +73,7 @@ async fn handle_command(bot: Bot, command: Command, message: Message) -> Command
async fn error_command(bot: &Bot, chat_id: ChatId, message_id: MessageId, error: &Error) -> CommandResult {
log::debug!("Command message {message_id:?} in {chat_id:?} errored out with `{error}`");
let text = format!("⚠️ {}", error.to_string());
let text = format!("⚠️ {error}");
let _reply = bot
.send_message(chat_id, text)