mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-22 11:04:21 +00:00
Lint: remove unnecessary .to_string()
call
This commit is contained in:
parent
c112f5da48
commit
341ef980d1
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
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}`");
|
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
|
let _reply = bot
|
||||||
.send_message(chat_id, text)
|
.send_message(chat_id, text)
|
||||||
|
|
Loading…
Reference in a new issue