From 4fae9b1dadfccf9d62e5727fd81035da5fa250cb Mon Sep 17 00:00:00 2001 From: "artem.ivanov" Date: Wed, 15 Nov 2023 13:52:17 +0300 Subject: [PATCH] Fixed formatting Signed-off-by: artem.ivanov --- src/ffi/credential.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/ffi/credential.rs b/src/ffi/credential.rs index aaf33c2b..2aad9be6 100644 --- a/src/ffi/credential.rs +++ b/src/ffi/credential.rs @@ -529,14 +529,12 @@ pub extern "C" fn anoncreds_w3c_credential_get_attribute( .revocation_registry .as_ref() .map_or(ptr::null_mut(), |s| rust_string_to_c(s.to_string())), - "rev_reg_index" => { - cred - .get_credential_signature_proof()? - .get_credential_signature()? - .signature - .extract_index() - .map_or(ptr::null_mut(), |s| rust_string_to_c(s.to_string())) - }, + "rev_reg_index" => cred + .get_credential_signature_proof()? + .get_credential_signature()? + .signature + .extract_index() + .map_or(ptr::null_mut(), |s| rust_string_to_c(s.to_string())), s => return Err(err_msg!("Unsupported attribute: {}", s)), }; unsafe { *result_p = val };