mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 16:31:16 +00:00
devices: gic: Pass slice rather than &Vec
This addresses a clippy issue Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
bfa31f9c56
commit
7fb1280666
@ -67,7 +67,7 @@ impl Gic {
|
|||||||
pub fn restore_vgic(
|
pub fn restore_vgic(
|
||||||
&mut self,
|
&mut self,
|
||||||
state: Option<GicState>,
|
state: Option<GicState>,
|
||||||
saved_vcpu_states: &Vec<CpuState>,
|
saved_vcpu_states: &[CpuState],
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
self.set_gicr_typers(saved_vcpu_states);
|
self.set_gicr_typers(saved_vcpu_states);
|
||||||
self.vgic
|
self.vgic
|
||||||
|
Loading…
Reference in New Issue
Block a user