diff --git a/aries/agents/rust/aries-vcx-agent/src/error/convertors.rs b/aries/agents/rust/aries-vcx-agent/src/error/convertors.rs index 927ece4a91..f81c371be2 100644 --- a/aries/agents/rust/aries-vcx-agent/src/error/convertors.rs +++ b/aries/agents/rust/aries-vcx-agent/src/error/convertors.rs @@ -1,10 +1,9 @@ use std::convert::From; use aries_vcx::{ - did_doc::error::DidDocumentBuilderError, + did_doc::{did_doc_sov::error::DidDocumentSovError, error::DidDocumentBuilderError}, errors::error::{AriesVcxError, AriesVcxErrorKind}, protocols::did_exchange::state_machine::generic::GenericDidExchange, - r#mod::error::DidDocumentSovError, }; use aries_vcx_core::errors::error::AriesVcxCoreError; diff --git a/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/resolve/helpers.rs b/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/resolve/helpers.rs index f632c9785c..47d3744fc9 100644 --- a/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/resolve/helpers.rs +++ b/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/resolve/helpers.rs @@ -126,7 +126,7 @@ fn deabbreviate_service( if service_type == "dm" { OneOrList::One("DIDCommMessaging".to_string()) } else { - OneOrList::One(service_type.to_string()) + OneOrList::One(service_type) } } OneOrList::List(mut service_types) => { diff --git a/did_core/did_methods/did_peer/tests/resolve_negative.rs b/did_core/did_methods/did_peer/tests/resolve_negative.rs index d5702681f0..2bae39dc44 100644 --- a/did_core/did_methods/did_peer/tests/resolve_negative.rs +++ b/did_core/did_methods/did_peer/tests/resolve_negative.rs @@ -5,7 +5,6 @@ use did_peer::{ resolver::{options::PublicKeyEncoding, PeerDidResolutionOptions, PeerDidResolver}, }; use did_resolver::traits::resolvable::DidResolvable; -use pretty_assertions::assert_eq; use tokio::test; async fn resolve_error(peer_did: &str) -> DidPeerError {