mirror of
https://github.com/imsnif/bandwhich.git
synced 2026-02-09 01:59:18 +08:00
Fix new clippy lint
This commit is contained in:
@@ -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,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user