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 <niuxuewei.nxw@antgroup.com>
This commit is contained in:
Xuewei Niu
2023-12-26 10:14:35 +08:00
parent f2d08bc00f
commit 36a4cbccf6

View File

@@ -237,8 +237,7 @@ impl DeviceManager {
return Some(device_id.to_string());
}
}
_ => {
// TODO: support find other device type
DeviceType::HybridVsock(_) | DeviceType::Vsock(_) => {
continue;
}
}