Run cargo fmt

This commit is contained in:
Sosthène Guédon
2023-09-13 09:34:47 +02:00
committed by Nicolas Stalder
parent d3e17537eb
commit 0d93ab2d4e
2 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -252,7 +252,8 @@ impl Credential {
let nonce: [u8; 12] = self.nonce.as_slice().try_into().unwrap();
let encrypted_serialized_credential = EncryptedSerializedCredential(syscall!(trussed
.encrypt_chacha8poly1305(key_encryption_key, message, associated_data, Some(&nonce))));
let credential_id: CredentialId = encrypted_serialized_credential.try_into()
let credential_id: CredentialId = encrypted_serialized_credential
.try_into()
.map_err(|_| Error::RequestTooLarge)?;
Ok(credential_id)
+1 -3
View File
@@ -112,9 +112,7 @@ where
// Goal of these nested scopes is to keep stack small.
let ctap_response = {
let ctap_request = {
ctap1::Request::try_from(command)?
};
let ctap_request = ctap1::Request::try_from(command)?;
ctap1::Authenticator::call_ctap1(authenticator, &ctap_request)?
};
// debug!("1b SP: {:X}", msp());