Skip to content

Commit c28b94a

Browse files
committed
Apply clippy lint available with MSRV 1.82.0
1 parent 2a61fd8 commit c28b94a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tests/cases/test_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ use crate::{
2323
};
2424

2525
pub fn sleep_and_quit_events(sleep_num: usize) -> Box<TerminalEvents> {
26-
let events = iter::repeat(None)
27-
.take(sleep_num)
26+
let events = iter::repeat_n(None, sleep_num)
2827
.chain([Some(Event::Key(KeyEvent::new(
2928
KeyCode::Char('c'),
3029
KeyModifiers::CONTROL,

0 commit comments

Comments
 (0)