Removed inlines
This commit is contained in:
@@ -5,7 +5,6 @@ use sha2::{Digest, Sha256};
|
||||
use teloxide::types::{InlineKeyboardButton, InlineKeyboardMarkup};
|
||||
use tokio::task::spawn_blocking;
|
||||
|
||||
#[inline]
|
||||
pub fn menu_markup_sync(
|
||||
command: &str,
|
||||
names: impl IntoIterator<Item = String>,
|
||||
@@ -25,7 +24,6 @@ pub fn menu_markup_sync(
|
||||
InlineKeyboardMarkup::new(&names)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub async fn menu_markup(
|
||||
command: impl Into<String> + Send,
|
||||
user_id: u64,
|
||||
@@ -39,7 +37,6 @@ pub async fn menu_markup(
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn make_button(text: &str, command: &str, param: &str) -> InlineKeyboardButton {
|
||||
let mut data = command.to_owned();
|
||||
data.reserve(param.len() + 1);
|
||||
@@ -48,7 +45,6 @@ fn make_button(text: &str, command: &str, param: &str) -> InlineKeyboardButton {
|
||||
InlineKeyboardButton::callback(text, data)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn account_markup(name: &str, is_encrypted: bool, locale: LocaleRef) -> InlineKeyboardMarkup {
|
||||
let mut hash = [0; 43];
|
||||
B64_ENGINE
|
||||
@@ -78,7 +74,6 @@ pub fn account_markup(name: &str, is_encrypted: bool, locale: LocaleRef) -> Inli
|
||||
InlineKeyboardMarkup::new(&main_buttons).append_row([menu_button])
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn language_markup() -> InlineKeyboardMarkup {
|
||||
let languages = [("🇷🇺 Русский", "ru"), ("🇬🇧 English", "en")]
|
||||
.into_iter()
|
||||
@@ -89,7 +84,6 @@ pub fn language_markup() -> InlineKeyboardMarkup {
|
||||
|
||||
/// Creates a markup with a "Delete message" button.
|
||||
/// This markup should be added for all messages that won't be deleted afterwards
|
||||
#[inline]
|
||||
pub fn deletion_markup(locale: LocaleRef) -> InlineKeyboardMarkup {
|
||||
let button = InlineKeyboardButton::callback(&locale.delete_message_button, "delete_message");
|
||||
InlineKeyboardMarkup::new([[button]])
|
||||
|
Reference in New Issue
Block a user