]> Repositorios git - scryer-prolog.git/commitdiff
Issue 3264: reformat to conform to style guidelines
authorAlexander McLin <[email protected]>
Sat, 11 Apr 2026 01:57:23 +0000 (21:57 -0400)
committerAlexander McLin <[email protected]>
Mon, 25 May 2026 22:13:01 +0000 (18:13 -0400)
src/read/fallback_mode.rs
src/read/user_interaction.rs

index b7a5ba92a6428035db237fba8ed2b7019294c567..759ac890cb33009d56eb5d451fc6dcdb3cef53db 100644 (file)
@@ -1,10 +1,10 @@
 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 
+// Provide graceful degradation limited support mode if reading from stdin that does not
 // support terminal features.
 //
-// Retrieve a single byte from stdin, does not support full Unicode decoding; only convert 
+// Retrieve a single byte from stdin, does not support full Unicode decoding; only convert
 // byte to KeyEvent char if it falls within the ASCII subset of UTF-8.
 //
 // Does not support passing through Ctrl-C as a KeyEvent.
@@ -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"))
                 }
             }
@@ -34,4 +33,4 @@ fn map_ascii_to_keyevent(c: char) -> KeyEvent {
         kind: KeyEventKind::Press,
         state: KeyEventState::empty(),
     }
-}
\ No newline at end of file
+}
index fb82259f779fe2fbe1523ec6efbec674aec0fe03..1f5e106d73a920bca56b363f6c13118a0ff7b185 100644 (file)
@@ -46,4 +46,4 @@ fn supported_terminal() -> bool {
 
     // If OS is Windows and stdin is not a tty, it's either a pipe or an unsupported terminal configuration.
     !windows_os || std::io::stdin().is_tty()
-}
\ No newline at end of file
+}