Merge pull request #457 from imsnif/clippy

Fix new clippy lint
This commit is contained in:
cyqsimon
2025-02-04 18:31:25 +08:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Fixed
* Update CONTRIBUTING information #438 - @YJDoc2 @cyqsimon
* Fix new clippy lint #457 - @cyqsimon
### Changed

View File

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