Skip to content
Snippets Groups Projects
Commit 146e6f08 authored by Julien Cretin's avatar Julien Cretin
Browse files

Don't rely on unification for array element type

parent ca6f910c
Branches
No related tags found
No related merge requests found
...@@ -473,7 +473,7 @@ impl From<PublicKeyCredentialSourceField> for cbor::KeyType { ...@@ -473,7 +473,7 @@ impl From<PublicKeyCredentialSourceField> for cbor::KeyType {
impl From<PublicKeyCredentialSource> for cbor::Value { impl From<PublicKeyCredentialSource> for cbor::Value {
fn from(credential: PublicKeyCredentialSource) -> cbor::Value { fn from(credential: PublicKeyCredentialSource) -> cbor::Value {
use PublicKeyCredentialSourceField::*; use PublicKeyCredentialSourceField::*;
let mut private_key = [0; 32]; let mut private_key = [0u8; 32];
credential.private_key.to_bytes(&mut private_key); credential.private_key.to_bytes(&mut private_key);
cbor_map_options! { cbor_map_options! {
CredentialId => Some(credential.credential_id), CredentialId => Some(credential.credential_id),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment