From 36a4cbccf606bec2ea78c3d1aeae4dbcf0b52980 Mon Sep 17 00:00:00 2001 From: Xuewei Niu Date: Tue, 26 Dec 2023 10:14:35 +0800 Subject: [PATCH] runtime-rs: Expand all DeviceType in match arms The compiler will give a warning if a developer forget to add an arm for a new variants defined. Signed-off-by: Xuewei Niu --- src/runtime-rs/crates/hypervisor/src/device/device_manager.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime-rs/crates/hypervisor/src/device/device_manager.rs b/src/runtime-rs/crates/hypervisor/src/device/device_manager.rs index 1e0701e22..76eaba4e1 100644 --- a/src/runtime-rs/crates/hypervisor/src/device/device_manager.rs +++ b/src/runtime-rs/crates/hypervisor/src/device/device_manager.rs @@ -237,8 +237,7 @@ impl DeviceManager { return Some(device_id.to_string()); } } - _ => { - // TODO: support find other device type + DeviceType::HybridVsock(_) | DeviceType::Vsock(_) => { continue; } }