Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Mar 26, 2024
1 parent cd8adbc commit e700dff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions bindings/grpc/src/services/domain_linkage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ impl DomainLinkage for DomainLinkageService {
) -> Result<Response<ValidateDomainResponse>, Status> {
let request_data = &req.into_inner();
// parse given domain
let domain: Url = Url::parse(&request_data.domain)
.map_err(|err| DomainLinkageError::DomainParsing(err.to_string()))?;
let domain: Url =
Url::parse(&request_data.domain).map_err(|err| DomainLinkageError::DomainParsing(err.to_string()))?;

// get validation status for all issuer dids
let status_infos = self
Expand All @@ -304,8 +304,8 @@ impl DomainLinkage for DomainLinkageService {
) -> Result<Response<ValidateDomainResponse>, Status> {
let request_data = &req.into_inner();
// parse given domain
let domain: Url = Url::parse(&request_data.domain)
.map_err(|err| DomainLinkageError::DomainParsing(err.to_string()))?;
let domain: Url =
Url::parse(&request_data.domain).map_err(|err| DomainLinkageError::DomainParsing(err.to_string()))?;
// parse config
let config = DomainLinkageConfiguration::from_json(&request_data.did_configuration.to_string()).map_err(|err| {
DomainLinkageError::DidConfigurationParsing(format!("could not parse given DID configuration; {}", &err))
Expand Down
6 changes: 3 additions & 3 deletions bindings/grpc/src/services/status_list_2021.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020-2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use std::collection::HashSet;
use std::collections::HashSet;

use identity_iota::core::Context;
use identity_iota::core::FromJson;
Expand Down Expand Up @@ -103,13 +103,13 @@ impl StatusList2021Svc for StatusList2021Service {
.map_err(|_| Error::InvalidStatusListLength)?;

let mut builder = StatusList2021CredentialBuilder::new(status_list);
let contexts = contexts.into_iter().collect::<HashSet>();
let contexts = contexts.into_iter().collect::<HashSet<_>>();
for ctx in contexts {
let url = Url::parse(&ctx).map_err(move |_| Error::InvalidContext(ctx))?;
builder = builder.context(Context::Url(url));
}

let types = types.into_iter().collect::<HashSet>();
let types = types.into_iter().collect::<HashSet<_>>();
for t in types {
builder = builder.add_type(t);
}
Expand Down

0 comments on commit e700dff

Please sign in to comment.