diff --git a/src/main.rs b/src/main.rs index 5b8e187b6a8fb9c853c31788a15e8cd71189a3e4..3b1706e7e0934452ad29ecce859fbdf3073c0b6d 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),