misc: Fix various clippy issues

Signed-off-by: Bo Chen <chen.bo@intel.com>

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2024-01-09 14:56:30 -08:00
committed by Bo Chen
parent 3d3693699b
commit b665aa19f4
15 changed files with 32 additions and 46 deletions
+1 -1
View File
@@ -963,7 +963,7 @@ mod tests {
self.init_pkt(local_port, peer_port, uapi::VSOCK_OP_RESPONSE);
self.send();
let mut buf = vec![0u8; 32];
let mut buf = [0u8; 32];
let len = stream.read(&mut buf[..]).unwrap();
assert_eq!(&buf[..len], format!("OK {local_port}\n").as_bytes());