mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Replace .unwrap() on FixedVhd::logical_size() with map_err in DiskSize::logical_size() and new_async_io() for both FixedVhdDiskSync and FixedVhdDiskAsync. The call is infallible today but unwrap hides that assumption from callers and would panic if it ever changed. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>