diff --git a/hostd/src/machine.rs b/hostd/src/machine.rs index ba63010..13323a7 100644 --- a/hostd/src/machine.rs +++ b/hostd/src/machine.rs @@ -27,11 +27,9 @@ pub async fn describe( .await .unwrap(); - let machine_id = manager - .machine_id() - .await - .unwrap() - // convert bytes to hex string + let bytes = manager.machine_id().await.unwrap(); + // convert bytes to hex string + let machine_id = bytes .iter() .map(|&b| format!("{:02x}", b)) .collect::<String>();