diff --git a/virtio-devices/src/transport/pci_common_config.rs b/virtio-devices/src/transport/pci_common_config.rs index 8bb92d463..07e1f2780 100644 --- a/virtio-devices/src/transport/pci_common_config.rs +++ b/virtio-devices/src/transport/pci_common_config.rs @@ -90,7 +90,7 @@ impl VirtioPciCommonConfig { &mut self, offset: u64, data: &mut [u8], - queues: &mut Vec>>, + queues: &mut [Queue>], device: Arc>, ) { assert!(data.len() <= 8); @@ -120,7 +120,7 @@ impl VirtioPciCommonConfig { &mut self, offset: u64, data: &[u8], - queues: &mut Vec>>, + queues: &mut [Queue>], device: Arc>, ) { assert!(data.len() <= 8); @@ -190,7 +190,7 @@ impl VirtioPciCommonConfig { &mut self, offset: u64, value: u16, - queues: &mut Vec>>, + queues: &mut [Queue>], ) { debug!("write_common_config_word: offset 0x{:x}", offset); match offset { @@ -256,7 +256,7 @@ impl VirtioPciCommonConfig { &mut self, offset: u64, value: u32, - queues: &mut Vec>>, + queues: &mut [Queue>], device: Arc>, ) { debug!("write_common_config_dword: offset 0x{:x}", offset); @@ -304,7 +304,7 @@ impl VirtioPciCommonConfig { &mut self, offset: u64, value: u64, - queues: &mut Vec>>, + queues: &mut [Queue>], ) { debug!("write_common_config_qword: offset 0x{:x}", offset); match offset { @@ -330,7 +330,7 @@ impl VirtioPciCommonConfig { fn with_queue_mut>)>( &self, - queues: &mut Vec>>, + queues: &mut [Queue>], f: F, ) { if let Some(queue) = queues.get_mut(self.queue_select as usize) {