diff --git a/examples/0_basic/0_create_did.rs b/examples/0_basic/0_create_did.rs index 1544860594..ff89818b7f 100644 --- a/examples/0_basic/0_create_did.rs +++ b/examples/0_basic/0_create_did.rs @@ -42,14 +42,14 @@ async fn main() -> anyhow::Result<()> { .await?; // Create a new secret manager backed by a Stronghold. - let mut secret_manager: SecretManager = SecretManager::Stronghold( + let secret_manager: SecretManager = SecretManager::Stronghold( StrongholdSecretManager::builder() .password(Password::from("secure_password".to_owned())) .build(random_stronghold_path())?, ); // Get an address with funds for testing. - let address: Address = get_address_with_funds(&client, &mut secret_manager, faucet_endpoint).await?; + let address: Address = get_address_with_funds(&client, &secret_manager, faucet_endpoint).await?; // Get the Bech32 human-readable part (HRP) of the network. let network_name: NetworkName = client.network_name().await?; diff --git a/examples/0_basic/8_stronghold.rs b/examples/0_basic/8_stronghold.rs index 5b2f9574ad..6dd8fa7cb5 100644 --- a/examples/0_basic/8_stronghold.rs +++ b/examples/0_basic/8_stronghold.rs @@ -1,9 +1,6 @@ // Copyright 2020-2023 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -use std::ops::Deref; -use std::ops::DerefMut; - use examples::get_address_with_funds; use examples::random_stronghold_path; use identity_iota::credential::Jws; @@ -27,6 +24,7 @@ use iota_sdk::client::Client; use iota_sdk::client::Password; use iota_sdk::types::block::address::Address; use iota_sdk::types::block::output::AliasOutput; +use std::ops::Deref; /// Demonstrates how to use stronghold for secure storage. #[tokio::main] diff --git a/examples/1_advanced/2_nft_owns_did.rs b/examples/1_advanced/2_nft_owns_did.rs index faa9e27eee..435964097c 100644 --- a/examples/1_advanced/2_nft_owns_did.rs +++ b/examples/1_advanced/2_nft_owns_did.rs @@ -50,14 +50,14 @@ async fn main() -> anyhow::Result<()> { .await?; // Create a new secret manager backed by a Stronghold. - let mut secret_manager: SecretManager = SecretManager::Stronghold( + let secret_manager: SecretManager = SecretManager::Stronghold( StrongholdSecretManager::builder() .password(Password::from("secure_password".to_owned())) .build(random_stronghold_path())?, ); // Get an address with funds for testing. - let address: Address = get_address_with_funds(&client, &mut secret_manager, FAUCET_ENDPOINT).await?; + let address: Address = get_address_with_funds(&client, &secret_manager, FAUCET_ENDPOINT).await?; // Get the current byte cost. let rent_structure: RentStructure = client.get_rent_structure().await?; diff --git a/identity_storage/src/secret_manager_wrapper.rs b/identity_storage/src/secret_manager_wrapper.rs index 0af0a4a02e..13affbb124 100644 --- a/identity_storage/src/secret_manager_wrapper.rs +++ b/identity_storage/src/secret_manager_wrapper.rs @@ -1,11 +1,10 @@ // Copyright 2020-2023 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -use std::sync::Arc; - use iota_sdk::client::secret::stronghold::StrongholdSecretManager; use iota_sdk::client::secret::SecretManager; use iota_stronghold::Stronghold; +use std::sync::Arc; use tokio::sync::MutexGuard; /// Wrapper around `SecretManager` that implements the storage interfaces.