Skip to content

Commit

Permalink
refactor(src/main.rs): new fmt rules for non-ascii chars
Browse files Browse the repository at this point in the history
  • Loading branch information
andros21 committed Jul 28, 2024
1 parent fcda5a7 commit c9488a5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c9488a5

Please sign in to comment.