From 445fecd798afe98317d8783e6bd4e407657b32cf Mon Sep 17 00:00:00 2001 From: Sebastian Wolfram Date: Wed, 4 Dec 2024 14:28:52 +0100 Subject: [PATCH 1/2] fix formatting issue --- identity_iota_core/src/rebased/client/read_only.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/identity_iota_core/src/rebased/client/read_only.rs b/identity_iota_core/src/rebased/client/read_only.rs index f26498217..f6ab3b58c 100644 --- a/identity_iota_core/src/rebased/client/read_only.rs +++ b/identity_iota_core/src/rebased/client/read_only.rs @@ -186,8 +186,7 @@ impl IdentityClientReadOnly { /// Resolves an [`Identity`] from its ID `object_id`. pub async fn get_identity(&self, object_id: ObjectID) -> Result { // spawn all checks - let all_futures = - FuturesUnordered::, Error>> + Send>>>::new(); + let all_futures = FuturesUnordered::, Error>> + Send>>>::new(); all_futures.push(Box::pin(resolve_new(self, object_id))); all_futures.push(Box::pin(resolve_migrated(self, object_id))); all_futures.push(Box::pin(resolve_unmigrated(self, object_id))); From e66881677fd42c6943c7c6b2f6763441489c2e64 Mon Sep 17 00:00:00 2001 From: Sebastian Wolfram Date: Wed, 4 Dec 2024 15:29:52 +0100 Subject: [PATCH 2/2] fix fmt and clippy issues --- identity_iota_core/src/rebased/client/read_only.rs | 2 +- identity_iota_core/src/rebased/iota/well_known_networks.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/identity_iota_core/src/rebased/client/read_only.rs b/identity_iota_core/src/rebased/client/read_only.rs index 7d85a5fc8..6fb897bf6 100644 --- a/identity_iota_core/src/rebased/client/read_only.rs +++ b/identity_iota_core/src/rebased/client/read_only.rs @@ -75,7 +75,7 @@ impl IdentityClientReadOnly { } /// Attempts to create a new [`IdentityClientReadOnly`] from a given [`IotaClient`]. - + /// /// # Failures /// This function fails if the provided `iota_client` is connected to an unrecognized /// network. diff --git a/identity_iota_core/src/rebased/iota/well_known_networks.rs b/identity_iota_core/src/rebased/iota/well_known_networks.rs index 8243a76b4..21585930f 100644 --- a/identity_iota_core/src/rebased/iota/well_known_networks.rs +++ b/identity_iota_core/src/rebased/iota/well_known_networks.rs @@ -1,5 +1,6 @@ use iota_sdk::types::base_types::ObjectID; -use phf::{phf_map, Map}; +use phf::phf_map; +use phf::Map; /// A Mapping `network_id` -> metadata needed by the library. pub(crate) static IOTA_NETWORKS: Map<&str, IdentityNetworkMetadata> = phf_map! {