fix typo
This commit is contained in:
parent
7f234cabc2
commit
db7dcf283d
@ -5,7 +5,7 @@ use std::thread;
|
|||||||
fn raw_to_string(rawdata: &[u8]) -> String {
|
fn raw_to_string(rawdata: &[u8]) -> String {
|
||||||
let mut data = String::new();
|
let mut data = String::new();
|
||||||
for byte in rawdata.iter() {
|
for byte in rawdata.iter() {
|
||||||
if *byte >= 32 && *byte >= 126 {
|
if *byte >= 32 && *byte <= 126 {
|
||||||
data.push((*byte).into());
|
data.push((*byte).into());
|
||||||
} else {
|
} else {
|
||||||
data.push_str(&format!("\\{:x?} ", *byte));
|
data.push_str(&format!("\\{:x?} ", *byte));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user