Forward desktop test fixes (#419)

* fixes clippy warnings for compilers until 2021-11-25

* fixes run_desktop_tests

* removes page_size
This commit is contained in:
kaczmarczyck
2021-11-30 11:07:17 +01:00
committed by GitHub
parent 8f96df53f2
commit 522e6079e3
10 changed files with 20 additions and 19 deletions

View File

@@ -131,8 +131,8 @@ pub fn cbor_read(encoded_cbor: &[u8]) -> Result<cbor::Value, Ctap2StatusCode> {
.map_err(|_e| Ctap2StatusCode::CTAP2_ERR_INVALID_CBOR)
}
fn cbor_write(value: cbor::Value, mut encoded_cbor: &mut Vec<u8>) -> Result<(), Ctap2StatusCode> {
cbor::writer::write_nested(value, &mut encoded_cbor, Some(MAX_CBOR_NESTING_DEPTH))
fn cbor_write(value: cbor::Value, encoded_cbor: &mut Vec<u8>) -> Result<(), Ctap2StatusCode> {
cbor::writer::write_nested(value, encoded_cbor, Some(MAX_CBOR_NESTING_DEPTH))
.map_err(|_e| Ctap2StatusCode::CTAP2_ERR_VENDOR_INTERNAL_ERROR)
}
@@ -939,7 +939,7 @@ where
return Ok(credential);
}
let credential =
self.decrypt_credential_source(allowed_credential.key_id, &rp_id_hash)?;
self.decrypt_credential_source(allowed_credential.key_id, rp_id_hash)?;
if credential.is_some() {
return Ok(credential);
}