From 4061f776940bb16920f3ab6429ea025644cb7836 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 13 Dec 2021 22:21:31 -0800 Subject: [PATCH] Infinite loop --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3af4a7f..87935d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ mod select; fn event_loop(input_device: &mut Device) -> Result<(), Box> { let mut output_device = output::build_device(input_device).unwrap(); - for _ in 0..5 { + loop { if !select::is_readable(input_device) { continue; } @@ -19,7 +19,6 @@ fn event_loop(input_device: &mut Device) -> Result<(), Box> { output_device.emit(&[event]).unwrap(); } } - Ok(()) } fn main() -> Result<(), Box> {