Removed library crate for pass_manager
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
use crate::{errors::HandlerUsed, markups::deletion_markup, utils::delete_optional, PinnedFuture};
|
||||
use crate::{errors::HandlerUsed, markups::deletion_markup, utils::delete_optional};
|
||||
use futures::future::BoxFuture;
|
||||
use sea_orm::prelude::*;
|
||||
use teloxide::{adaptors::Throttle, prelude::*};
|
||||
|
||||
@ -19,7 +20,7 @@ where
|
||||
&'a Message,
|
||||
&'a DatabaseConnection,
|
||||
&'a str,
|
||||
) -> PinnedFuture<'a, crate::Result<Option<Message>>>,
|
||||
) -> BoxFuture<'a, crate::Result<Option<Message>>>,
|
||||
{
|
||||
let mut handler = next.lock().await;
|
||||
delete_optional(&bot, handler.previous.as_ref()).await;
|
||||
|
@ -1,4 +1,5 @@
|
||||
use crate::MainDialogue;
|
||||
use futures::future::BoxFuture;
|
||||
use sea_orm::prelude::*;
|
||||
use std::{future::Future, sync::Arc};
|
||||
use teloxide::{adaptors::Throttle, prelude::*};
|
||||
@ -11,7 +12,7 @@ type DynHanlder<T> = Box<
|
||||
DatabaseConnection,
|
||||
MainDialogue,
|
||||
T,
|
||||
) -> crate::PinnedFuture<'static, crate::Result<()>>
|
||||
) -> BoxFuture<'static, crate::Result<()>>
|
||||
+ Send,
|
||||
>;
|
||||
|
||||
|
Reference in New Issue
Block a user