mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
pci: rename as_any to as_any_mut
That trait function returns a mutable reference. Rename it to follow Rust's convention. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -644,7 +644,7 @@ impl DeviceRelocation for AddressManager {
|
||||
}
|
||||
}
|
||||
|
||||
let any_dev = pci_dev.as_any();
|
||||
let any_dev = pci_dev.as_any_mut();
|
||||
if let Some(virtio_pci_dev) = any_dev.downcast_ref::<VirtioPciDevice>() {
|
||||
let bar_addr = virtio_pci_dev.config_bar_addr();
|
||||
if bar_addr == new_base {
|
||||
|
||||
Reference in New Issue
Block a user