This commit is contained in:
Lucas Schumacher 2023-09-23 22:38:11 -04:00
parent 7f234cabc2
commit db7dcf283d

View File

@ -5,7 +5,7 @@ use std::thread;
fn raw_to_string(rawdata: &[u8]) -> String {
let mut data = String::new();
for byte in rawdata.iter() {
if *byte >= 32 && *byte >= 126 {
if *byte >= 32 && *byte <= 126 {
data.push((*byte).into());
} else {
data.push_str(&format!("\\{:x?} ", *byte));