diff --git a/core-foundation/Cargo.toml b/core-foundation/Cargo.toml index 6895a0c..1bb2fc6 100644 --- a/core-foundation/Cargo.toml +++ b/core-foundation/Cargo.toml @@ -17,7 +17,7 @@ version = "0.8.6" [dependencies] libc = "0.2" -uuid = { version = "0.5", optional = true } +uuid = { version = "1", optional = true } [features] default = ["link"] diff --git a/core-foundation/src/uuid.rs b/core-foundation/src/uuid.rs index 834a6dd..f5146c5 100644 --- a/core-foundation/src/uuid.rs +++ b/core-foundation/src/uuid.rs @@ -51,7 +51,7 @@ impl From for Uuid { b.byte0, b.byte1, b.byte2, b.byte3, b.byte4, b.byte5, b.byte6, b.byte7, b.byte8, b.byte9, b.byte10, b.byte11, b.byte12, b.byte13, b.byte14, b.byte15, ]; - Uuid::from_bytes(&bytes).unwrap() + Uuid::from_bytes(bytes) } }