Added LocaleString type that can be converted to String to reduce the ammount of as_refs
This commit is contained in:
@@ -12,13 +12,13 @@ pub async fn menu(
|
||||
let markup = menu_markup("get", user_id, &db).await?;
|
||||
|
||||
if markup.inline_keyboard.is_empty() {
|
||||
bot.send_message(msg.chat.id, locale.no_accounts_found.as_ref())
|
||||
bot.send_message(msg.chat.id, &locale.no_accounts_found)
|
||||
.reply_markup(deletion_markup(locale))
|
||||
.await?;
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
bot.send_message(msg.chat.id, locale.choose_account.as_ref())
|
||||
bot.send_message(msg.chat.id, &locale.choose_account)
|
||||
.reply_markup(markup)
|
||||
.await?;
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user