diff --git a/bindings/grpc/src/services/domain_linkage.rs b/bindings/grpc/src/services/domain_linkage.rs index 42e4d902fc..3c3935a413 100644 --- a/bindings/grpc/src/services/domain_linkage.rs +++ b/bindings/grpc/src/services/domain_linkage.rs @@ -278,8 +278,8 @@ impl DomainLinkage for DomainLinkageService { ) -> Result, 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 @@ -304,8 +304,8 @@ impl DomainLinkage for DomainLinkageService { ) -> Result, 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)) diff --git a/bindings/grpc/src/services/status_list_2021.rs b/bindings/grpc/src/services/status_list_2021.rs index 3a94dfcfea..be0595c9a4 100644 --- a/bindings/grpc/src/services/status_list_2021.rs +++ b/bindings/grpc/src/services/status_list_2021.rs @@ -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; @@ -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::(); + let contexts = contexts.into_iter().collect::>(); 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::(); + let types = types.into_iter().collect::>(); for t in types { builder = builder.add_type(t); }