mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
To handle that devices are stored in an Option<Vec<T>> and reduce duplicated code use generic function to add the devices to the the struct. Signed-off-by: Rob Bradford <robert.bradford@intel.com>