mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-23 11:52:21 +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>