Code beautifying
This commit is contained in:
parent
26b8675374
commit
9794fc00ec
1 changed files with 0 additions and 2 deletions
|
@ -7,11 +7,9 @@ const CLIENT_TIMEOUT: u32 = 300;
|
||||||
const MY_SPEED: u8 = 30;
|
const MY_SPEED: u8 = 30;
|
||||||
|
|
||||||
fn strip_header(msg: &[u8]) -> Vec<u8> {
|
fn strip_header(msg: &[u8]) -> Vec<u8> {
|
||||||
//print_msg(msg);
|
|
||||||
let mut stripped = Vec::new();
|
let mut stripped = Vec::new();
|
||||||
stripped.push(msg[1] & 3);
|
stripped.push(msg[1] & 3);
|
||||||
stripped.append(msg[2..].to_vec().as_mut());
|
stripped.append(msg[2..].to_vec().as_mut());
|
||||||
//print_msg(&stripped);
|
|
||||||
stripped.to_owned()
|
stripped.to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue