Code beautifying

This commit is contained in:
Martin Brodbeck 2023-10-03 22:12:37 +02:00
parent 26b8675374
commit 9794fc00ec

View file

@ -7,11 +7,9 @@ const CLIENT_TIMEOUT: u32 = 300;
const MY_SPEED: u8 = 30;
fn strip_header(msg: &[u8]) -> Vec<u8> {
//print_msg(msg);
let mut stripped = Vec::new();
stripped.push(msg[1] & 3);
stripped.append(msg[2..].to_vec().as_mut());
//print_msg(&stripped);
stripped.to_owned()
}