Clippy fix for tests (#462)

This commit is contained in:
Stefan Holderbach 2022-08-14 19:51:18 +02:00 committed by GitHub
parent e72f927db3
commit f41a5c2605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -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];

View File

@ -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),