mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 13:50:16 +00:00
chore(menu): clarify that we do not need to free the key event
This commit is contained in:
@@ -50,6 +50,7 @@ fn read(input: &mut Input, timeout: &Duration) -> Result<MenuOperation> {
|
||||
.context("unable to wait for event")?;
|
||||
|
||||
// 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() {
|
||||
uefi::boot::close_event(timer_event).context("unable to close timer event")?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user