From c9488a54297f1756d135878a83c803d6d6fd4385 Mon Sep 17 00:00:00 2001 From: andros21 Date: Sun, 28 Jul 2024 10:35:17 +0200 Subject: [PATCH] refactor(src/main.rs): new fmt rules for non-ascii chars see https://github.com/rust-lang/rust/releases/tag/1.80.0 https://github.com/rust-lang/rustfmt/issues/6203 --- src/main.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 065b165..936d78e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -266,8 +266,11 @@ async fn got_command(bot: Bot, dialogue: MyDialogue, msg: Message, cmd: Command) } None => { error!("Move failed, invalid film id {:?}", id); - bot.send_message(msg.chat.id, "⚠️ Move failed, invalid film id".to_string()) - .await?; + bot.send_message( + msg.chat.id, + "⚠️ Move failed, invalid film id".to_string(), + ) + .await?; } } } else { @@ -362,8 +365,11 @@ async fn got_command(bot: Bot, dialogue: MyDialogue, msg: Message, cmd: Command) } None => { error!("Info failed, invalid film {:?}", id); - bot.send_message(msg.chat.id, "⚠️ Info failed, invalid film id".to_string()) - .await?; + bot.send_message( + msg.chat.id, + "⚠️ Info failed, invalid film id".to_string(), + ) + .await?; } } } else {