Address various rustc warnings
Change-Id: I61bbfcdbbbb9a4795e2c280f70903e1b66a165c9
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/events/ping_lib.rs b/aos/events/ping_lib.rs
index c4b3679..96d7132 100644
--- a/aos/events/ping_lib.rs
+++ b/aos/events/ping_lib.rs
@@ -20,6 +20,7 @@
}
/// Returns a future with all the tasks for the ping process
+ #[allow(unreachable_code)]
pub async fn tasks(&self, event_loop: EventLoopRuntime<'_>, sleep: u64) -> Never {
futures::join!(self.ping(&event_loop, sleep), self.handle_pong(&event_loop));
unreachable!("Let's hope `never_type` gets stabilized soon :)");