From cfef41d92c8550e2cb8bb1b50dd641a6786efa8a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 19 Aug 2024 07:32:32 +0200 Subject: [PATCH] Remove unit return type --- src/instance/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/instance/mod.rs b/src/instance/mod.rs index 92e9f15c..bcf59e67 100644 --- a/src/instance/mod.rs +++ b/src/instance/mod.rs @@ -86,10 +86,8 @@ impl RoyalnetInstance { } #[cfg(not(feature = "service_telegram"))] - async fn setup_telegram_service() -> () { + async fn setup_telegram_service() { log::warn!("Telegram service is not compiled in."); - - () } #[cfg(feature = "service_telegram")] @@ -119,10 +117,8 @@ impl RoyalnetInstance { } #[cfg(not(feature = "service_brooch"))] - async fn setup_brooch_service() -> () { + async fn setup_brooch_service() { log::warn!("Brooch service is not compiled in."); - - () } #[cfg(feature = "service_brooch")]