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:
Wei Liu
2024-04-27 01:31:37 +00:00
committed by Wei Liu
parent 44c9ce598d
commit d99f294281
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -422,7 +422,7 @@ impl PciDevice for VfioUserPciDevice {
.free_bars(allocator, mmio32_allocator, mmio64_allocator)
}
fn as_any(&mut self) -> &mut dyn Any {
fn as_any_mut(&mut self) -> &mut dyn Any {
self
}