From a634947da1c78f51b0909c52828cc2b4f236bca2 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 12 Jan 2021 23:24:00 -0800 Subject: [PATCH] Remove eprintln in lieu of better error reporting --- Cargo.toml | 2 +- src/connections/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d83bedd..b4f904b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tapir-cwtch" -version = "0.1.4" +version = "0.1.5" authors = ["Sarah Jamie Lewis "] edition = "2018" license = "MIT" diff --git a/src/connections/mod.rs b/src/connections/mod.rs index 7b64d86..1765010 100644 --- a/src/connections/mod.rs +++ b/src/connections/mod.rs @@ -88,7 +88,7 @@ impl ConnectionInterface for Connection { let mut result = [0u8; 8192]; match self.conn.read_exact(&mut result) { Err(e) => { - eprintln!("{}", e.to_string()); + //eprintln!("{}", e.to_string()); return vec![]; } _ => {} @@ -105,7 +105,7 @@ impl ConnectionInterface for Connection { let _len_bytes = [0u8; 2]; let len = u16::decode_fixed(&msg[0..2]) as usize; if len > 8192 { - eprintln!("invalid length: {}", len); + //eprintln!("invalid length: {}", len); return vec![]; // lol no. } msg[2..len + 2].to_vec()