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

@@ -21,7 +21,6 @@ pub enum InvalidCommand {
UnknownLocale,
}
#[inline]
pub fn init_logger() {
tracing_subscriber::registry()
.with(fmt::layer().pretty())
@@ -32,7 +31,6 @@ pub fn init_logger() {
/// Handles an error.
/// This function must be as cheap and generic as possible and must remain sync.
/// If expensive or long action is required, a task should be spawned but not joined.
#[inline]
pub fn handle_error<T>(error: T)
where
T: Debug + Display,
@@ -43,7 +41,6 @@ where
pub struct ErrorHandler;
impl teloxide::error_handlers::ErrorHandler<crate::Error> for ErrorHandler {
#[inline]
fn handle_error(
self: std::sync::Arc<Self>,
error: crate::Error,