chore(menu): clarify that we do not need to free the key event

This commit is contained in:
2025-10-27 22:59:00 -04:00
parent 527ce4b1b4
commit ccd1a8f498

View File

@@ -50,6 +50,7 @@ fn read(input: &mut Input, timeout: &Duration) -> Result<MenuOperation> {
.context("unable to wait for event")?; .context("unable to wait for event")?;
// Close the timer event that we acquired. // Close the timer event that we acquired.
// We don't need to close the key event because it is owned globally.
if let Some(timer_event) = events.into_iter().next() { if let Some(timer_event) = events.into_iter().next() {
uefi::boot::close_event(timer_event).context("unable to close timer event")?; uefi::boot::close_event(timer_event).context("unable to close timer event")?;
} }