chore: fmt + clippy
This commit is contained in:
@ -1017,7 +1017,9 @@ mod tests {
|
||||
// hjkl should be bound
|
||||
for key in ['h', 'j', 'k', 'l'] {
|
||||
assert!(
|
||||
normal.lookup(KeyCode::Char(key), KeyModifiers::NONE).is_some(),
|
||||
normal
|
||||
.lookup(KeyCode::Char(key), KeyModifiers::NONE)
|
||||
.is_some(),
|
||||
"Normal mode missing binding for '{}'",
|
||||
key
|
||||
);
|
||||
@ -1041,9 +1043,7 @@ mod tests {
|
||||
.lookup(KeyCode::Char('z'), KeyModifiers::NONE)
|
||||
.is_some());
|
||||
// Should have Esc to exit
|
||||
assert!(editing
|
||||
.lookup(KeyCode::Esc, KeyModifiers::NONE)
|
||||
.is_some());
|
||||
assert!(editing.lookup(KeyCode::Esc, KeyModifiers::NONE).is_some());
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -1053,9 +1053,7 @@ mod tests {
|
||||
assert!(search
|
||||
.lookup(KeyCode::Char('a'), KeyModifiers::NONE)
|
||||
.is_some());
|
||||
assert!(search
|
||||
.lookup(KeyCode::Esc, KeyModifiers::NONE)
|
||||
.is_some());
|
||||
assert!(search.lookup(KeyCode::Esc, KeyModifiers::NONE).is_some());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user