generated from Patagia/template-nix
Compare commits
1 commit
7a0564f60a
...
0e10762517
Author | SHA1 | Date | |
---|---|---|---|
0e10762517 |
1 changed files with 5 additions and 3 deletions
|
@ -27,9 +27,11 @@ pub async fn describe(
|
|||
.await
|
||||
.unwrap();
|
||||
|
||||
let bytes = manager.machine_id().await.unwrap();
|
||||
// convert bytes to hex string
|
||||
let machine_id = bytes
|
||||
let machine_id = manager
|
||||
.machine_id()
|
||||
.await
|
||||
.unwrap()
|
||||
// convert bytes to hex string
|
||||
.iter()
|
||||
.map(|&b| format!("{:02x}", b))
|
||||
.collect::<String>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue