Apply clippy lint available with MSRV 1.82.0, #2

This commit is contained in:
cyqsimon
2025-07-10 11:58:35 +08:00
parent c28b94ae98
commit 719ae8ac63
2 changed files with 2 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* Bump `pnet` & `packet-builder` #444 - @cyqsimon
* Switch from anyhow to eyre #450 - @cyqsimon
* Manually bump all dependencies #456 - @cyqsimon
* Bump MSRV to 1.82.0 - @cyqsimon
## [0.23.1] - 2024-10-09

View File

@@ -33,8 +33,7 @@ pub fn sleep_and_quit_events(sleep_num: usize) -> Box<TerminalEvents> {
}
pub fn sleep_resize_and_quit_events(sleep_num: usize) -> Box<TerminalEvents> {
let events = iter::repeat(None)
.take(sleep_num)
let events = iter::repeat_n(None, sleep_num)
.chain([
Some(Event::Resize(100, 100)),
Some(Event::Key(KeyEvent::new(