Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cobward committed Dec 5, 2024
1 parent 2760962 commit c990a78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/core/presentation_submission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ impl<T> MatchingInputs<'_, T> {
for d in definition.input_descriptors() {
if self
.by_descriptor
.get(d.id.as_str()).is_none_or(|i| i.is_empty())
.get(d.id.as_str())
.is_none_or(|i| i.is_empty())
{
return Err(SubmissionValidationError::MissingRequiredInput(
d.id.clone(),
Expand Down
7 changes: 1 addition & 6 deletions tests/jwt_vp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ pub async fn create_test_verifiable_presentation() -> Result<AnyJsonPresentation
vp.verifiable_credentials
.push(serde_json::from_value(json_credential)?);
vp.holder = Some(holder_did.into());
vp.id = UriBuf::new(
format!("urn:uuid:{}", Uuid::new_v4())
.as_bytes()
.to_vec(),
)
.ok();
vp.id = UriBuf::new(format!("urn:uuid:{}", Uuid::new_v4()).as_bytes().to_vec()).ok();

Ok(AnyJsonPresentation::V1(vp))
}

0 comments on commit c990a78

Please sign in to comment.