Enabled clippy warnings and fixed them

This commit is contained in:
2023-11-16 21:51:46 +03:00
parent f0116b3207
commit 6ae745fcd4
21 changed files with 129 additions and 163 deletions

View File

@@ -13,7 +13,7 @@ type PasswordArray = [ArrayString<PASSWORD_LENGTH>; AMOUNT_OF_PASSWORDS];
const BUFFER_LENGTH: usize =
MESSAGE_HEADER.len() + (PASSWORD_LENGTH + PASSWORD_PADDING_LENGTH) * AMOUNT_OF_PASSWORDS;
/// Handles /gen_password command by generating 10 copyable passwords and sending them to the user
/// 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) -> crate::Result<()> {
let mut message: ArrayString<BUFFER_LENGTH> = MESSAGE_HEADER.try_into().unwrap();

View File

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

View File

@@ -66,7 +66,7 @@ async fn get_master_pass(
Ok(())
}
/// Handles /set_master_pass command
/// Handles /`set_master_pass` command
#[inline]
pub async fn set_master_pass(
bot: Throttle<Bot>,