1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-21 18:44:19 +00:00

Allow clippy::manual_async_fn for get_*_future methods

This commit is contained in:
Steffo 2024-08-19 07:36:51 +02:00
parent 111e474411
commit b476a77fad
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -95,6 +95,7 @@ impl RoyalnetInstance {
} }
#[cfg(not(feature = "service_telegram"))] #[cfg(not(feature = "service_telegram"))]
#[allow(clippy::manual_async_fn)]
fn get_telegram_future(_service: &mut ()) -> impl Future<Output = ()> + '_ { fn get_telegram_future(_service: &mut ()) -> impl Future<Output = ()> + '_ {
async {} async {}
} }
@ -126,6 +127,7 @@ impl RoyalnetInstance {
} }
#[cfg(not(feature = "service_brooch"))] #[cfg(not(feature = "service_brooch"))]
#[allow(clippy::manual_async_fn)]
fn get_brooch_future(_service: &mut ()) -> impl Future<Output = ()> + '_ { fn get_brooch_future(_service: &mut ()) -> impl Future<Output = ()> + '_ {
async {} async {}
} }