chore: fmt + clippy

This commit is contained in:
Edward Langley
2026-04-09 00:21:48 -07:00
parent 08df85664e
commit 6239ac83ad
12 changed files with 264 additions and 195 deletions

View File

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