(info: &Value)
| 53 | } |
| 54 | |
| 55 | fn host_discovered_devices_array(info: &Value) -> Option<&Vec<Value>> { |
| 56 | info.get("Host") |
| 57 | .or_else(|| info.get("host")) |
| 58 | .and_then(discovered_devices_array) |
| 59 | } |
| 60 | |
| 61 | fn collect_cdi_gpu_device_ids_from_devices(devices: &[Value], device_ids: &mut Vec<String>) { |
| 62 | for device in devices { |
no test coverage detected