Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
Irene Diez committed Apr 8, 2024
1 parent d0665eb commit 31a1c0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions integration-tests/tests/to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ ssh-ed25519 sshkey_default [email protected]

fn determine_device_credential_guid(path: &Path) -> Result<Guid> {
let dc_contents = fs::read(path).context("Error reading device credential")?;
let dc: FileDeviceCredential =
ciborium::de::from_reader::<FileDeviceCredential, &T>(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)
}

0 comments on commit 31a1c0b

Please sign in to comment.