Removed inlines

This commit is contained in:
2024-05-13 13:58:56 +03:00
parent 064ec22e51
commit 25b02ba99a
42 changed files with 0 additions and 100 deletions

View File

@@ -3,7 +3,6 @@ use tokio::task::spawn_blocking;
/// Gets the name of the master password, encryptes the account and adds it to the DB
#[allow(clippy::too_many_arguments)]
#[inline]
async fn get_master_pass(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -1,7 +1,6 @@
use crate::prelude::*;
/// Handles /cancel command when there's no active state
#[inline]
pub async fn cancel(bot: Throttle<Bot>, msg: Message, locale: LocaleRef) -> crate::Result<()> {
bot.send_message(msg.chat.id, &locale.nothing_to_cancel)
.reply_markup(deletion_markup(locale))

View File

@@ -1,6 +1,5 @@
use crate::{markups::language_markup, prelude::*};
#[inline]
pub async fn change_language(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -1,6 +1,5 @@
use crate::prelude::*;
#[inline]
pub async fn delete(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -2,7 +2,6 @@ use crate::prelude::*;
/// Gets the master password, deletes the accounts and the master password from DB.
/// Although it doesn't use the master password, we get it to be sure that it's the user who used that command
#[inline]
async fn get_master_pass(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -5,7 +5,6 @@ use teloxide::types::InputFile;
use tokio::task::spawn_blocking;
/// Decryptes the account on a worker thread and adds it to the accounts vector
#[inline]
async fn decrypt_account(
account: Account,
master_pass: Arc<str>,
@@ -18,7 +17,6 @@ async fn decrypt_account(
}
/// Gets the master password, decryptes the account and sends the json file to the user
#[inline]
async fn get_master_pass(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -11,7 +11,6 @@ type PasswordArray = [ArrayString<PASSWORD_LENGTH>; AMOUNT_OF_PASSWORDS];
const BUFFER_LENGTH: usize = (PASSWORD_LENGTH + PASSWORD_PADDING_LENGTH) * AMOUNT_OF_PASSWORDS;
/// Handles /`gen_password` command by generating 10 copyable passwords and sending them to the user
#[inline]
pub async fn gen_password(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -1,6 +1,5 @@
use crate::prelude::*;
#[inline]
pub async fn get_account(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -3,7 +3,6 @@ use std::fmt::Write;
use teloxide::types::ParseMode;
/// Handles /`get_accounts` command by sending the list of copyable account names to the user
#[inline]
pub async fn get_accounts(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -1,7 +1,6 @@
use crate::prelude::*;
/// Handles the help command by sending the passwords descryptions
#[inline]
pub async fn help(bot: Throttle<Bot>, msg: Message, locale: LocaleRef) -> crate::Result<()> {
bot.send_message(msg.chat.id, &locale.help_command)
.reply_markup(deletion_markup(locale))

View File

@@ -7,7 +7,6 @@ use tokio::task::spawn_blocking;
/// Ecryptes the account and adds it to the database
/// If any of these steps fail, the account name will be added to the failed vector
#[inline]
async fn encrypt_account(
account: DecryptedAccount,
user_id: u64,
@@ -26,7 +25,6 @@ async fn encrypt_account(
}
/// Gets the master password, encryptes and adds the accounts to the DB
#[inline]
#[allow(clippy::too_many_arguments)]
async fn get_master_pass(
bot: Throttle<Bot>,

View File

@@ -1,6 +1,5 @@
use crate::prelude::*;
#[inline]
pub async fn menu(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -4,7 +4,6 @@ use crate::{
};
use tokio::task::spawn_blocking;
#[inline]
#[allow(clippy::too_many_arguments)]
async fn get_master_pass2(
bot: Throttle<Bot>,
@@ -50,7 +49,6 @@ async fn get_master_pass2(
Ok(())
}
#[inline]
async fn get_master_pass(
bot: Throttle<Bot>,
_: Message,
@@ -77,7 +75,6 @@ async fn get_master_pass(
}
/// Handles /`set_master_pass` command
#[inline]
pub async fn set_master_pass(
bot: Throttle<Bot>,
msg: Message,

View File

@@ -1,7 +1,6 @@
use crate::prelude::*;
/// Handles /start command by sending the greeting message
#[inline]
pub async fn start(bot: Throttle<Bot>, msg: Message, locale: LocaleRef) -> crate::Result<()> {
bot.send_message(msg.chat.id, &locale.start_command).await?;
Ok(())