Remove unknown fields

This commit is contained in:
Julien Cretin
2020-05-13 11:09:32 +02:00
parent 479de32a95
commit ca6f910c26
4 changed files with 49 additions and 75 deletions

View File

@@ -335,7 +335,6 @@ where
user_handle: vec![],
other_ui: None,
cred_random: None,
unknown_fields: BTreeMap::new(),
})
}
@@ -502,7 +501,6 @@ where
.user_display_name
.map(|s| truncate_to_char_boundary(&s, 64).to_string()),
cred_random,
unknown_fields: BTreeMap::new(),
};
self.persistent_store.store_credential(credential_source)?;
random_id
@@ -1281,7 +1279,6 @@ mod test {
user_handle: vec![],
other_ui: None,
cred_random: None,
unknown_fields: BTreeMap::new(),
};
assert!(ctap_state
.persistent_store
@@ -1479,7 +1476,6 @@ mod test {
user_handle: vec![],
other_ui: None,
cred_random: None,
unknown_fields: BTreeMap::new(),
};
assert!(ctap_state
.persistent_store