mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +00:00
error: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do --> virtio-devices/src/transport/pci_common_config.rs:93:17 | 93 | queues: &mut Vec<Queue<GuestMemoryAtomic<GuestMemoryMmap>>>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&mut [Queue<GuestMemoryAtomic<GuestMemoryMmap>>]` | = note: `-D clippy::ptr-arg` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg Signed-off-by: Akira Moroo <retrage01@gmail.com>