cloud-hypervisor/hypervisor/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
..
arch build: treewide: clippy: collapse nested ifs, use let chains 2025-09-10 18:35:38 +00:00
kvm misc: cleanup &Arc<dyn T> -> &dyn T 2025-10-28 17:37:49 +00:00
mshv misc: cleanup &Arc<dyn T> -> &dyn T 2025-10-28 17:37:49 +00:00
cpu.rs misc: cleanup &Arc<dyn T> -> &dyn T 2025-10-28 17:37:49 +00:00
device.rs misc: hypervisor: streamline error Display::fmt() 2025-06-13 19:55:54 +00:00
hypervisor.rs vmm: hypervisor: simplify VM creation API 2025-09-17 16:40:10 +00:00
lib.rs vmm: hypervisor: simplify VM creation API 2025-09-17 16:40:10 +00:00
vm.rs hypervisor, vmm: Remove inner Mutex protecting VcpuFd 2025-10-24 13:13:12 +00:00