Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
Signed-off-by: artem.ivanov <[email protected]>
  • Loading branch information
Artemkaaas committed Nov 15, 2023
1 parent 11410f0 commit 4fae9b1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/ffi/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 4fae9b1

Please sign in to comment.