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 };