From 31a1c0b38ba7ca7a0ec04f76804928c85237532a Mon Sep 17 00:00:00 2001 From: Irene Diez Date: Mon, 8 Apr 2024 12:01:47 +0200 Subject: [PATCH] F --- Cargo.lock | 2 +- integration-tests/tests/to.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b03747a6..52009746e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1642,6 +1642,7 @@ name = "integration-tests" version = "0.5.0" dependencies = [ "anyhow", + "ciborium", "fdo-data-formats", "fdo-util", "hex", @@ -1654,7 +1655,6 @@ dependencies = [ "regex", "reqwest", "serde", - "serde_cbor", "serde_json", "tempfile", "tera", diff --git a/integration-tests/tests/to.rs b/integration-tests/tests/to.rs index f2141c13c..eeb3dead9 100644 --- a/integration-tests/tests/to.rs +++ b/integration-tests/tests/to.rs @@ -292,8 +292,7 @@ ssh-ed25519 sshkey_default user@example2.com fn determine_device_credential_guid(path: &Path) -> Result { let dc_contents = fs::read(path).context("Error reading device credential")?; - let dc: FileDeviceCredential = - ciborium::de::from_reader::(dc_contents.as_ref()) - .context("Error deserializing device credential")?; + let dc: FileDeviceCredential = ciborium::de::from_reader(dc_contents.as_slice()) + .context("Error deserializing device credential")?; Ok(dc.guid) }