mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
44eca31642
warning: accessing first element with `data.get(0)` --> virtio-devices/src/transport/pci_device.rs:1055:34 | 1055 | if let Some(v) = data.get(0) { | ^^^^^^^^^^^ help: try: `data.first()` | = note: `#[warn(clippy::get_first)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first Signed-off-by: Rob Bradford <robert.bradford@intel.com>