diff --git a/src/ctap/data_formats.rs b/src/ctap/data_formats.rs index 98a05247fccf322e75a08cf15c9ce72162bc9d66..63f74f19d4d70a6b9f7fbd4da2ffbec21d8aba00 100644 --- a/src/ctap/data_formats.rs +++ b/src/ctap/data_formats.rs @@ -473,7 +473,7 @@ impl From<PublicKeyCredentialSourceField> for cbor::KeyType { impl From<PublicKeyCredentialSource> for cbor::Value { fn from(credential: PublicKeyCredentialSource) -> cbor::Value { use PublicKeyCredentialSourceField::*; - let mut private_key = [0; 32]; + let mut private_key = [0u8; 32]; credential.private_key.to_bytes(&mut private_key); cbor_map_options! { CredentialId => Some(credential.credential_id),