mirror of
https://github.com/imsnif/bandwhich.git
synced 2026-02-09 01:59:18 +08:00
Apply clippy lint available with MSRV 1.82.0
This commit is contained in:
@@ -23,8 +23,7 @@ use crate::{
|
||||
};
|
||||
|
||||
pub fn sleep_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::Key(KeyEvent::new(
|
||||
KeyCode::Char('c'),
|
||||
KeyModifiers::CONTROL,
|
||||
|
||||
Reference in New Issue
Block a user