mirror of
https://github.com/nushell/reedline.git
synced 2024-08-17 11:50:42 +03:00
Clippy fix for tests (#462)
This commit is contained in:
parent
e72f927db3
commit
f41a5c2605
@ -419,8 +419,10 @@ mod test {
|
||||
#[case] last_to_till: Option<ViToTill>,
|
||||
#[case] expected: Option<Command>,
|
||||
) {
|
||||
let mut vi = Vi::default();
|
||||
vi.last_to_till = last_to_till;
|
||||
let vi = Vi {
|
||||
last_to_till,
|
||||
..Vi::default()
|
||||
};
|
||||
|
||||
let input = vec![input];
|
||||
|
||||
|
@ -327,8 +327,10 @@ mod test {
|
||||
#[case] modifiers: KeyModifiers,
|
||||
#[case] expected: ViToTill,
|
||||
) {
|
||||
let mut vi = Vi::default();
|
||||
vi.mode = ViMode::Normal;
|
||||
let mut vi = Vi {
|
||||
mode: ViMode::Normal,
|
||||
..Vi::default()
|
||||
};
|
||||
|
||||
let to_till = Event::Key(KeyEvent {
|
||||
code: KeyCode::Char(code),
|
||||
|
Loading…
Reference in New Issue
Block a user