From 9b13ff738a4ad609e088a3a089cbe4eb440a0b52 Mon Sep 17 00:00:00 2001 From: George Mulhearn Date: Mon, 9 Dec 2024 16:23:49 +1000 Subject: [PATCH] fmt Signed-off-by: George Mulhearn --- aries/aries_vcx_ledger/src/ledger/cheqd/models.rs | 3 ++- .../did_methods/did_cheqd/src/resolution/resolver.rs | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/aries/aries_vcx_ledger/src/ledger/cheqd/models.rs b/aries/aries_vcx_ledger/src/ledger/cheqd/models.rs index 83ad010415..e6a8b7496a 100644 --- a/aries/aries_vcx_ledger/src/ledger/cheqd/models.rs +++ b/aries/aries_vcx_ledger/src/ledger/cheqd/models.rs @@ -4,7 +4,8 @@ use anoncreds_types::data_types::{ identifiers::{cred_def_id::CredentialDefinitionId, schema_id::SchemaId}, ledger::{ cred_def::{CredentialDefinitionData, SignatureType}, - rev_reg_def::{RegistryType, RevocationRegistryDefinitionValue}, rev_status_list::serde_revocation_list, + rev_reg_def::{RegistryType, RevocationRegistryDefinitionValue}, + rev_status_list::serde_revocation_list, }, }; use serde::{Deserialize, Serialize}; diff --git a/did_core/did_methods/did_cheqd/src/resolution/resolver.rs b/did_core/did_methods/did_cheqd/src/resolution/resolver.rs index 6ba71137ed..0a67a2ad91 100644 --- a/did_core/did_methods/did_cheqd/src/resolution/resolver.rs +++ b/did_core/did_methods/did_cheqd/src/resolution/resolver.rs @@ -490,7 +490,9 @@ mod unit_tests { #[tokio::test] async fn test_resolve_resource_fails_if_incomplete_query() { - let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf".parse().unwrap(); + let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf" + .parse() + .unwrap(); let resolver = DidCheqdResolver::new(Default::default()); let e = resolver.resolve_resource(&url).await.unwrap_err(); assert!(matches!(e, DidCheqdError::InvalidDidUrl(_))); @@ -499,7 +501,10 @@ mod unit_tests { #[tokio::test] async fn test_resolve_resource_fails_if_invalid_resource_time() { // use epoch instead of XML DateTime - let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf&resourceType=fdsa&resourceVersionTime=12341234".parse().unwrap(); + let url = "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=asdf&resourceType=fdsa&\ + resourceVersionTime=12341234" + .parse() + .unwrap(); let resolver = DidCheqdResolver::new(Default::default()); let e = resolver.resolve_resource(&url).await.unwrap_err(); assert!(matches!(e, DidCheqdError::InvalidDidUrl(_)));