Remove unnecessary async/.await (src/dispatching/dispatcher.rs)

This commit is contained in:
Temirkhan Myrzamadi 2020-03-16 20:20:04 +06:00
parent bc89fe7b01
commit 1d601a99c2

View file

@ -21,12 +21,12 @@ mod macros {
/// Pushes an update to a queue.
macro_rules! send {
($bot:expr, $tx:expr, $update:expr, $variant:expr) => {
send($bot, $tx, $update, stringify!($variant)).await;
send($bot, $tx, $update, stringify!($variant));
};
}
}
async fn send<'a, Upd>(
fn send<'a, Upd>(
bot: &'a Arc<Bot>,
tx: &'a Tx<Upd>,
update: Upd,