Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
Signed-off-by: DenisRybas <[email protected]>
  • Loading branch information
DenisRybas committed Feb 5, 2024
1 parent 01552b6 commit c94888f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 3 additions & 4 deletions vdr/src/contracts/did/did_ethr_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
contracts::{
did::{types::did_doc_attribute::PublicKeyPurpose, DidResolutionError},
types::did::ParsedDid,
DidDocumentWithMeta, DidMetadata, DidResolutionMetadata,
DidDocumentWithMeta, DidMetadata, DidResolutionMetadata, DID_RESOLUTION_FORMAT,
},
did_ethr_registry::{
build_get_did_changed_transaction, build_get_did_events_query, parse_did_changed_result,
Expand All @@ -15,7 +15,6 @@ use crate::{
DidDocumentBuilder, DidEvents, DidOwnerChanged, DidResolutionOptions, LedgerClient, VdrResult,
VerificationKeyType, DID,
};
use crate::contracts::DID_RESOLUTION_FORMAT;

#[logfn(Info)]
#[logfn_inputs(Debug)]
Expand Down Expand Up @@ -171,7 +170,7 @@ pub(crate) async fn _resolve_did(
version_id.as_ref(),
next_version_id.as_ref(),
)
.await?;
.await?;
let did_document = did_doc_builder.build();
Ok((did_document, did_document_metadata))
}
Expand Down Expand Up @@ -200,7 +199,7 @@ async fn receive_did_history(
previous_block.as_ref(),
previous_block.as_ref(),
)
.await?;
.await?;
let logs = client.query_events(&transaction).await?;

// if no logs, break the loop as nothing to add to the change history
Expand Down
1 change: 0 additions & 1 deletion vdr/src/contracts/did/types/did_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ pub const SECPK_CONTEXT: &str = "https://w3id.org/security/suites/secp256k1recov
pub const KEYS_CONTEXT: &str = "https://w3id.org/security/v3-unstable";
pub const DID_RESOLUTION_FORMAT: &str = "application/did+ld+json";


#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct DidDocumentWithMeta {
Expand Down
4 changes: 1 addition & 3 deletions vdr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ pub use contracts::{
did_ethr_registry,
types::{
did::DID,
did_doc::{
DidDocument, DidResolutionOptions, VerificationKeyType,
},
did_doc::{DidDocument, DidResolutionOptions, VerificationKeyType},
did_doc_attribute::{DelegateType, DidDocAttribute, Validity},
did_doc_builder::DidDocumentBuilder,
did_events::{DidAttributeChanged, DidDelegateChanged, DidEvents, DidOwnerChanged},
Expand Down

0 comments on commit c94888f

Please sign in to comment.