From 223a00563ee7adfe3c561cdaf4c23a0b4d4d616e Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Mon, 3 Nov 2025 02:35:01 -0500 Subject: [PATCH] chore(menu): add note as to why we match on the timer event --- crates/sprout/src/menu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/sprout/src/menu.rs b/crates/sprout/src/menu.rs index 2ee6ebc..c80ae47 100644 --- a/crates/sprout/src/menu.rs +++ b/crates/sprout/src/menu.rs @@ -66,6 +66,7 @@ fn read(input: &mut Input, timeout: &Duration) -> Result { // Close the timer event that we acquired. // We don't need to close the key event because it is owned globally. + // This should always be called in practice as events are not modified by wait_for_event. if let Some(timer_event) = events.into_iter().next() { // Store the result of the close event so we can determine if we can safely assert it. let close_event_result =