cloud-hypervisor/vm-device/src
Philipp Schuster 7536a95424 misc: cleanup &Arc<dyn T> -> &dyn T
Consuming `&Arc<T>` as argument is almost always an antipattern as it
hides whether the callee is going to take over (shared) ownership
(by .clone()) or not. Instead, it is better to consume `&dyn T` or
`Arc<dyn T>` to be more explicit. This commit cleans up the code.

The change is very mechanic and was very easy to implement across the
code base.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
2025-10-28 17:37:49 +00:00
..
dma_mapping misc: Fix various warnings from clippy 0.1.82 2024-09-07 09:40:20 +00:00
interrupt misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
bus.rs misc: cleanup &Arc<dyn T> -> &dyn T 2025-10-28 17:37:49 +00:00
lib.rs virtio-devices: move userspace mapping to vm-device 2025-08-14 22:14:34 +00:00