added inline attributes
This commit is contained in:
parent
0139963459
commit
af95e16622
@ -2,6 +2,7 @@ use crate::{change_state, prelude::*};
|
|||||||
use teloxide::types::ParseMode;
|
use teloxide::types::ParseMode;
|
||||||
use tokio::task::spawn_blocking;
|
use tokio::task::spawn_blocking;
|
||||||
|
|
||||||
|
#[inline]
|
||||||
async fn get_master_pass(
|
async fn get_master_pass(
|
||||||
bot: Throttle<Bot>,
|
bot: Throttle<Bot>,
|
||||||
msg: Message,
|
msg: Message,
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
use crate::{change_state, prelude::*};
|
use crate::{change_state, prelude::*};
|
||||||
|
|
||||||
|
#[inline]
|
||||||
async fn get_master_pass(
|
async fn get_master_pass(
|
||||||
bot: Throttle<Bot>,
|
bot: Throttle<Bot>,
|
||||||
msg: Message,
|
msg: Message,
|
||||||
|
@ -17,6 +17,7 @@ pub fn validate_field(field: &str) -> bool {
|
|||||||
.all(|char| !['`', '\\', '\n', '\t'].contains(&char))
|
.all(|char| !['`', '\\', '\n', '\t'].contains(&char))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub async fn name_from_hash(
|
pub async fn name_from_hash(
|
||||||
db: &DatabaseConnection,
|
db: &DatabaseConnection,
|
||||||
user_id: u64,
|
user_id: u64,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user