Skip to content

Commit 9474231

Browse files
Update cbor-smol to v0.5.0
1 parent 699539a commit 9474231

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/trussed-dev/ctap-types"
1010
[dependencies]
1111
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
1212
bitflags = "1.3"
13-
cbor-smol = "0.4"
13+
cbor-smol = { version = "0.5", features = ["heapless-bytes-v0-3"] }
1414
cosey = "0.3.1"
1515
delog = "0.1"
1616
heapless = { version = "0.7", default-features = false, features = ["serde"] }

src/ctap2.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ impl<'a, A: SerializeAttestedCredentialData, E: serde::Serialize> AuthenticatorD
242242

243243
// the extensions data
244244
if let Some(extensions) = self.extensions.as_ref() {
245-
cbor_smol::cbor_serialize_extending_bytes(extensions, &mut bytes)
246-
.map_err(|_| Error::Other)?;
245+
cbor_smol::cbor_serialize_to(extensions, &mut bytes).map_err(|_| Error::Other)?;
247246
}
248247

249248
Ok(bytes)

0 commit comments

Comments
 (0)