From e6a49851fe7579c5db1537333586b0f4d8a36017 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Thu, 20 Apr 2023 08:39:34 +0200 Subject: [PATCH] async simplification --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9432a7c..038a460 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ impl Into for u8 { } } -async fn send_status( +fn send_status( rule: u8, states: String, ) -> impl Future> { @@ -118,7 +118,7 @@ async fn main() { // Send toot let sent = - tokio::time::timeout(Duration::from_secs(1), send_status(rule, states).await).await; + tokio::time::timeout(Duration::from_secs(1), send_status(rule, states)).await; // Figure out what went wrong match sent {