mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-23 13:05:45 +00:00
151668b260
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>