From b08226fe9391482ffbf835f0e2192985a27c4fff Mon Sep 17 00:00:00 2001
From: Federico Lolli <federico.lolli@skywarder.eu>
Date: Mon, 22 Jan 2024 12:49:33 +0100
Subject: [PATCH] removed useless print of stdout data (not needed)

---
 src/main.rs | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 5b8e187..3b1706e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -78,13 +78,6 @@ fn main() {
                 // check if we got the signal to start sending data
                 let eot_f = buffer[..t].contains(&EOT);
 
-                // encode the buffer into a string (remove the EOT character)
-                let input = if eot_f {
-                    String::from_utf8_lossy(&buffer[..t - 1])
-                } else {
-                    String::from_utf8_lossy(&buffer[..t])
-                };
-
                 // if we got the signal to start sending data, send it
                 if eot_f {
                     trace!("got EOT, sending data");
@@ -99,7 +92,6 @@ fn main() {
                         break;
                     }
                 }
-                std::io::stdout().write_all(input.as_bytes()).unwrap();
             }
             Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (),
             Err(e) => error!("{:?}", e),
-- 
GitLab