Skip to content

Commit db92675

Browse files
7flyingIrene Diez
authored and
Irene Diez
committed
chore(integration-tests): replace serde_cbor with ciborium
Signed-off-by: Irene Diez <[email protected]>
1 parent dbfac37 commit db92675

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ path = "tests/to.rs"
1818

1919
[dev-dependencies]
2020
anyhow = "1"
21+
ciborium = "0.2.0"
2122
hex = "0.4"
2223
tempfile = "3"
2324
tera = "1"
@@ -28,7 +29,6 @@ libc = "0.2"
2829
reqwest = { version = "0.11", features = ["json"] }
2930
tokio = "1.25.0"
3031
serde = "1"
31-
serde_cbor = "0.11"
3232
serde_json = "1.0"
3333
pretty_assertions = "1.0.0"
3434
paste = "1.0"

integration-tests/tests/to.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ ssh-ed25519 sshkey_default [email protected]
292292

293293
fn determine_device_credential_guid(path: &Path) -> Result<Guid> {
294294
let dc_contents = fs::read(path).context("Error reading device credential")?;
295-
let dc: FileDeviceCredential =
296-
serde_cbor::from_slice(&dc_contents).context("Error deserializing device credential")?;
295+
let dc: FileDeviceCredential = ciborium::de::from_reader(dc_contents.as_slice())
296+
.context("Error deserializing device credential")?;
297297
Ok(dc.guid)
298298
}

0 commit comments

Comments
 (0)