Enabled clippy warnings and fixed them
This commit is contained in:
@@ -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();
|
||||
|
@@ -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>,
|
||||
|
@@ -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>,
|
||||
|
Reference in New Issue
Block a user