From 4901def540a6af400aaecb2cb06436df584f758b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 28 Mar 2022 18:59:28 +0100 Subject: [PATCH] SMALLER BUT BAD --- src/main.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4875cc5..96c61b7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,13 +7,9 @@ async fn awaitpoint() { } async fn failure() { let (_, rx) = mpsc::channel::<()>(); - while let Ok(event) = { let k= ℞ let y = k.recv(); y } { - while let Ok(_ignore) = rx.try_recv() { - } - eprintln!("event={:?}", event); - awaitpoint().await; - } - + while let Ok(event) = { let k= ℞ k.recv() } { + awaitpoint().await; + } } fn main() { -- 2.30.2