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:
@@ -708,7 +708,7 @@ impl PciDevice for PvmemcontrolPciDevice {
|
||||
self.configuration.read_config_register(reg_idx)
|
||||
}
|
||||
|
||||
fn as_any(&mut self) -> &mut dyn std::any::Any {
|
||||
fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ impl PciDevice for PvPanicDevice {
|
||||
data[0] = self.events;
|
||||
}
|
||||
|
||||
fn as_any(&mut self) -> &mut dyn Any {
|
||||
fn as_any_mut(&mut self) -> &mut dyn Any {
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user