diff --git a/trustchain-ffi/src/mobile.rs b/trustchain-ffi/src/mobile.rs index d23b6f19..fca1180e 100644 --- a/trustchain-ffi/src/mobile.rs +++ b/trustchain-ffi/src/mobile.rs @@ -177,7 +177,7 @@ pub fn vc_redact( .rss_redact(masked_copy, &resolver, &mut ContextLoader::default()) .await }) - .map_err(|err| FFIMobileError::FailedToRedactCredential(err))?; + .map_err(FFIMobileError::FailedToRedactCredential)?; Ok(serde_json::to_string_pretty(&o_cred).map_err(FFIMobileError::FailedToSerialize)?) }