Fix new clippy lint

This commit is contained in:
cyqsimon
2025-02-04 18:03:37 +08:00
parent 8fed2c3f81
commit 25f58b0dc2

View File

@@ -40,10 +40,7 @@ pub struct TerminalEvents;
impl Iterator for TerminalEvents { impl Iterator for TerminalEvents {
type Item = Event; type Item = Event;
fn next(&mut self) -> Option<Event> { fn next(&mut self) -> Option<Event> {
match read() { read().ok()
Ok(ev) => Some(ev),
Err(_) => None,
}
} }
} }