From 25f58b0dc29c4d3ea173b3e783d2bc9b5d30aab7 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 4 Feb 2025 18:03:37 +0800 Subject: [PATCH 1/2] Fix new clippy lint --- src/os/shared.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/os/shared.rs b/src/os/shared.rs index eca3eee..7be9583 100644 --- a/src/os/shared.rs +++ b/src/os/shared.rs @@ -40,10 +40,7 @@ pub struct TerminalEvents; impl Iterator for TerminalEvents { type Item = Event; fn next(&mut self) -> Option { - match read() { - Ok(ev) => Some(ev), - Err(_) => None, - } + read().ok() } } From d769ab18a9764b043894c41b7a2180060eb984c3 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 4 Feb 2025 18:27:45 +0800 Subject: [PATCH 2/2] Write changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8237fe6..48984fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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