mirror of
https://github.com/trussed-dev/fido-authenticator.git
synced 2026-06-20 04:16:16 -07:00
Run cargo fmt
This commit is contained in:
committed by
Nicolas Stalder
parent
d3e17537eb
commit
0d93ab2d4e
+2
-1
@@ -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
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user