no remember sync
This commit is contained in:
parent
bb6c062be4
commit
dbdfab1fd6
@ -27,10 +27,8 @@ fn process_reques(mut stream: TcpStream) {
|
|||||||
|
|
||||||
fn check_state(buf: &mut [u8; 256], len: usize) {
|
fn check_state(buf: &mut [u8; 256], len: usize) {
|
||||||
let var = String::from_utf8(buf[0 .. len-2].to_vec()).unwrap();
|
let var = String::from_utf8(buf[0 .. len-2].to_vec()).unwrap();
|
||||||
//let var = String::from("some");
|
|
||||||
match var.as_str(){
|
match var.as_str(){
|
||||||
"some" => println!("entra"),
|
"some" => println!("entra"),
|
||||||
_=> println!("pos no {}", var),
|
_=> println!("pos no {}", var),
|
||||||
}
|
}
|
||||||
println!("len {}", var.len());
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user