cloud-hypervisor/virtio-devices
Rob Bradford 1446873b28 virtio-devices: vsock: Fix slow vector initialization
warning: slow zero-filling initialization
   --> virtio-devices/src/vsock/csm/txbuf.rs:218:9
    |
216 |         let mut tmp: Vec<u8> = Vec::new();
    |                                ---------- help: consider replacing this with: `vec![0; TxBuf::SIZE - 2]`
217 |
218 |         tmp.resize(TxBuf::SIZE - 2, 0);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
    = note: `#[warn(clippy::slow_vector_initialization)]` on by default

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
(cherry picked from commit 05a86d892e)
2024-01-19 09:09:22 -08:00
..
src virtio-devices: vsock: Fix slow vector initialization 2024-01-19 09:09:22 -08:00
Cargo.toml build: Update dependencies in v28.x stable branch 2022-12-13 14:29:22 +00:00