Issue 3264: reformat to conform to style guidelines
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user