aboutsummaryrefslogtreecommitdiffstats
path: root/src/input.rs
diff options
context:
space:
mode:
authorRoee Shapira <35409124+5c077m4n@users.noreply.github.com>2020-11-28 21:02:05 +0200
committerGitHub <noreply@github.com>2020-11-28 20:02:05 +0100
commit9ad7b8a35ea34297905ec479dbf87a35802cd8b1 (patch)
tree6c61f8e74b72b9c8b484f39fe2173d927227bf26 /src/input.rs
parentfeat(tiles): initial WASM integration (diff)
downloadsl0ppij-9ad7b8a35ea34297905ec479dbf87a35802cd8b1.tar.gz
sl0ppij-9ad7b8a35ea34297905ec479dbf87a35802cd8b1.tar.xz
sl0ppij-9ad7b8a35ea34297905ec479dbf87a35802cd8b1.zip
chore(infra): added clippy check. (#65)
* Added clippy check. * Changed step name. * Used the suggested ci config. * Some more clippy fixes. * Some more clippy fixes. * More clippy fixes. * Removed allow annotations. * Minor lint edit. * More clippy fixes. * Ran cargo fmt. * More clippy fixes. * More clippy fixes. * More clippy fixes. * More clippy fixes. * More clippy fixes. * More clippy fixes. * Code review edits. * Code review edits. * Code review edits. * CI update. * CI update. * CI update. * Added clippy warn so wip won't fail ci. * Cargo fmt.
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/input.rs b/src/input.rs
index 91b0ec98..49092430 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -5,7 +5,6 @@ use std::sync::mpsc::Sender;
use crate::os_input_output::OsApi;
use crate::pty_bus::PtyInstruction;
use crate::screen::ScreenInstruction;
-use crate::utils::logging::debug_log_to_file;
use crate::AppInstruction;
use crate::CommandIsExecuting;
@@ -59,7 +58,8 @@ impl InputHandler {
loop {
self.buffer = [0; 10];
- self.stdin
+ let _ = self
+ .stdin
.read(&mut self.buffer)
.expect("failed to read stdin");
@@ -93,7 +93,8 @@ impl InputHandler {
loop {
self.buffer = [0; 10];
- self.stdin
+ let _ = self
+ .stdin
.read(&mut self.buffer)
.expect("failed to read stdin");
// uncomment this to print the entered character to a log file (/tmp/mosaic/mosaic-log.txt) for debugging