From 146e6f083b9ceb7b45260ff1d6fa82f5a24772aa Mon Sep 17 00:00:00 2001
From: Julien Cretin <cretin@google.com>
Date: Thu, 14 May 2020 21:32:16 +0200
Subject: [PATCH] Don't rely on unification for array element type

---
 src/ctap/data_formats.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ctap/data_formats.rs b/src/ctap/data_formats.rs
index 98a0524..63f74f1 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),
-- 
GitLab