From 4b75dd88a7062fa58a4909da834d3d663e2951e7 Mon Sep 17 00:00:00 2001 From: Alex Coats Date: Wed, 6 Dec 2023 12:43:24 -0500 Subject: [PATCH] cleanup --- bindings/core/src/method/wallet.rs | 1 - sdk/examples/client/node_api_core/05_post_block_raw.rs | 2 +- sdk/examples/how_tos/account/implicit_account_creation.rs | 2 +- sdk/examples/how_tos/accounts_and_addresses/create_wallet.rs | 2 +- sdk/examples/how_tos/sign_and_verify_ed25519/sign_ed25519.rs | 2 +- sdk/tests/client/addresses.rs | 2 -- 6 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bindings/core/src/method/wallet.rs b/bindings/core/src/method/wallet.rs index c8381598d9..c3fd9a6c62 100644 --- a/bindings/core/src/method/wallet.rs +++ b/bindings/core/src/method/wallet.rs @@ -4,7 +4,6 @@ #[cfg(feature = "stronghold")] use std::path::PathBuf; -use crypto::keys::bip44::Bip44; use derivative::Derivative; #[cfg(feature = "events")] use iota_sdk::wallet::events::types::{WalletEvent, WalletEventType}; diff --git a/sdk/examples/client/node_api_core/05_post_block_raw.rs b/sdk/examples/client/node_api_core/05_post_block_raw.rs index cfa165b894..37bee6258d 100644 --- a/sdk/examples/client/node_api_core/05_post_block_raw.rs +++ b/sdk/examples/client/node_api_core/05_post_block_raw.rs @@ -12,7 +12,7 @@ use crypto::keys::bip44::Bip44; use iota_sdk::{ client::{ constants::IOTA_COIN_TYPE, - secret::{mnemonic::MnemonicSecretManager, BlockSignExt, SecretManager}, + secret::{mnemonic::MnemonicSecretManager, BlockSignExt}, Client, Result, }, types::block::output::AccountId, diff --git a/sdk/examples/how_tos/account/implicit_account_creation.rs b/sdk/examples/how_tos/account/implicit_account_creation.rs index e14ed9fb92..fc2b284e1e 100644 --- a/sdk/examples/how_tos/account/implicit_account_creation.rs +++ b/sdk/examples/how_tos/account/implicit_account_creation.rs @@ -11,7 +11,7 @@ use iota_sdk::{ client::{ constants::SHIMMER_COIN_TYPE, - secret::{mnemonic::MnemonicSecretManager, PublicKeyOptions, SecretManager}, + secret::{mnemonic::MnemonicSecretManager, PublicKeyOptions}, }, crypto::keys::bip44::Bip44, wallet::{ClientOptions, Result, Wallet}, diff --git a/sdk/examples/how_tos/accounts_and_addresses/create_wallet.rs b/sdk/examples/how_tos/accounts_and_addresses/create_wallet.rs index 2c719e6ee3..97304249ee 100644 --- a/sdk/examples/how_tos/accounts_and_addresses/create_wallet.rs +++ b/sdk/examples/how_tos/accounts_and_addresses/create_wallet.rs @@ -13,7 +13,7 @@ use iota_sdk::{ client::{ constants::SHIMMER_COIN_TYPE, - secret::{stronghold::StrongholdSecretManager, PublicKeyOptions, SecretManager}, + secret::{stronghold::StrongholdSecretManager, PublicKeyOptions}, }, crypto::keys::{bip39::Mnemonic, bip44::Bip44}, wallet::{ClientOptions, Result, Wallet}, diff --git a/sdk/examples/how_tos/sign_and_verify_ed25519/sign_ed25519.rs b/sdk/examples/how_tos/sign_and_verify_ed25519/sign_ed25519.rs index fa75273899..71918573c4 100644 --- a/sdk/examples/how_tos/sign_and_verify_ed25519/sign_ed25519.rs +++ b/sdk/examples/how_tos/sign_and_verify_ed25519/sign_ed25519.rs @@ -13,7 +13,7 @@ use iota_sdk::{ client::{ constants::SHIMMER_COIN_TYPE, hex_public_key_to_bech32_address, - secret::{stronghold::StrongholdSecretManager, SecretManage, SecretManageExt, SecretManager}, + secret::{stronghold::StrongholdSecretManager, SecretManageExt}, }, crypto::keys::bip39::Mnemonic, types::block::signature::Ed25519Signature, diff --git a/sdk/tests/client/addresses.rs b/sdk/tests/client/addresses.rs index fdd8d8da6d..dc451e206a 100644 --- a/sdk/tests/client/addresses.rs +++ b/sdk/tests/client/addresses.rs @@ -239,8 +239,6 @@ async fn address_generation() { #[tokio::test] async fn address_search() -> Result<()> { - let client = Client::builder().finish().await.unwrap(); - let secret_manager = MnemonicSecretManager::try_from_mnemonic(generate_mnemonic()?)?; // Public