Issue 3264: reformat to conform to style guidelines

This commit is contained in:
Alexander McLin
2026-04-10 21:57:23 -04:00
parent 533594b6b6
commit d5d514ec96
2 changed files with 6 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
use crossterm::event::{KeyCode, KeyEvent, KeyEventKind, KeyEventState, KeyModifiers};
use std::io::{Read, Error, ErrorKind};
use std::io::{Error, ErrorKind, Read};
// Provide graceful degradation limited support mode if reading from stdin that does not
// support terminal features.
@@ -16,8 +16,7 @@ pub(crate) fn limited_support_read() -> std::io::Result<KeyEvent> {
Ok(b) => {
if b.is_ascii() {
Ok(map_ascii_to_keyevent(b as char))
}
else {
} else {
Err(Error::new(ErrorKind::Unsupported, "not supported input"))
}
}